Check to see if a capability is enabled or disabled
#include <pci/pci.h> bool_t pci_device_cfg_cap_isenabled( pci_devhdl_t hdl, pci_cap_t cap );
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().
true or false, depending on the capability state.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |