Get the chassis and slot for a device
#include <pci/pci.h> pci_cs_t pci_device_chassis_slot( pci_bdf_t bdf );
The pci_device_chassis_slot() function returns the chassis and slot that device bdf resides in.
A pci_cs_t that contains the information about the chassis and slot. For more details about this data type, see pci_chassis_slot_device().
If you pass this value to the PCI_SLOT() macro, and the result is 0, then the device isn't in a slot.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |