pci_device_chassis_slot()

Get the chassis and slot for a device

Synopsis:

#include <pci/pci.h>

pci_cs_t pci_device_chassis_slot( pci_bdf_t bdf );

Arguments:

bdf
The Bus/Device/Function for a device. You can construct this value with the PCI_BDF() macro, but you more typically obtain it by calling pci_device_find().

Library:

libpci

Use the -l pci option to qcc to link against this library.

Description:

The pci_device_chassis_slot() function returns the chassis and slot that device bdf resides in.

Returns:

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.

Classification:

QNX Neutrino

Safety:  
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes

See also:

pci_chassis_slot_bridge(), pci_chassis_slot_device()