pci_device_is_multi_func()

Updated: April 19, 2023

Determine whether or not a device is a multifunction device

Synopsis:

#include <pci/pci.h>

bool_t pci_device_is_multi_func( pci_bdf_t bdf );

Arguments:

bdf
The Bus/Device/Function associated with a device.

Library:

libpci

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

Description:

The pci_device_is_multi_func() function determines whether or not the device identified by bdf is a multifunction device. The bdf should be for function 0; if it isn't, pci_device_is_multi_func() checks for function 0.

Returns:

true
The device is a multifunction device.
false
The device isn't a multifunction device, or bdf is invalid.

Classification:

QNX Neutrino

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