SBDF#
- class SBDF(segment=None, bus=None, device=None, func=None, *args, **kwargs)#
Bases:
object
The (S)egment:(B)us:(D)evice.(F)unction hardware address. See https://wiki.xen.org/wiki/Bus:Device.Function_(BDF)_Notation for more details.
- Parameters:
segment – (
segment
) PCI Segment.bus – (
bus
) PCI Bus number in hexadecimal, often padded using a leading zeros to two or four digits.device – (
device
) PCI Device number in hexadecimal, often padded using a leading zero to two digits . Sometimes this is also referred to as the slot number.func – (
func
) PCI Function number in hexadecimal.
- property bus#
PCI Bus number in hexadecimal, often padded using a leading zeros to two or four digits.
- Type:
int
- property device#
PCI Device number in hexadecimal, often padded using a leading zero to two digits . Sometimes this is also referred to as the slot number.
- Type:
int
- property func#
PCI Function number in hexadecimal.
- Type:
int
- property segment#
PCI Segment.
- Type:
int
- to_dict()#
Returns the model properties as a dictionary
- to_str()#
Returns the string representation of the model