pci_device_cfg_cap_isenabled()
QNX SDP8.0PCI Server User's GuideAPIConfiguration
Check to see if a capability is enabled or disabled
Synopsis:
#include <pci/pci.h>
bool_t pci_device_cfg_cap_isenabled( pci_devhdl_t hdl,
pci_cap_t cap );
Arguments:
- hdl
- The handle of the device, obtained by calling pci_device_attach().
- cap
- A pointer to a capability structure.
Library:
libpci
Use the -l pci option to qcc to link against this library.
Description:
This function determines whether the capability identified by cap for the device identified by hdl is enabled or disabled. You must have already attached to the device by successfully calling pci_device_attach(). You can obtain the device capability by calling pci_device_read_cap().
Returns:
true or false, depending on the capability state.
Classification:
Safety: | |
---|---|
Cancellation point | No |
Signal handler | No |
Thread | Yes |
See also:
Page updated: