DDI_INTR_GET_SUPPORTED_TYPES(9F) Kernel Functions for Drivers
ddi_intr_get_supported_types - return information on supported hardware
#include <sys/sunddi.h> int ddi_intr_get_supported_types
, int *typesp
Solaris DDI specific (Solaris DDI)
Pointer to dev_info
Pointer to supported interrupt types
function retrieves the interrupt types
supported by a particular hardware device and by the system software.
Upon successful return, the supported types are returned as a bit mask in
the integer pointed to by the typesp
argument. See <sys/ddi_intr.h
> for a
list of interrupts that can be returned by a hardware device.
For PCI devices that support MSI and/or MSI-X based hardware, this
interface returns only the interrupt types that are supported by all the
hardware in the path to the hardware device.
An interrupt type is usable by the hardware device if it is returned by
function. The device driver can be
programmed to use one of the returned interrupt types to receive hardware
function returns: DDI_SUCCESS
On success. DDI_EINVAL
On encountering invalid input parameters. DDI_INTR_NOTFOUND
Returned when the hardware device is found not to
support any hardware interrupts.
function can be called from user or
kernel non-interrupt context.
for descriptions of the following attributes:
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|Interface Stability | Committed |
SEE ALSO pci(4)
, ddi_intr_enable(9F) Writing Device Drivers
function can be called by the device
driver even at any time if the driver has added an interrupt handler for
a given interrupt type.
Soft interrupts are always usable and are not returned by this interface.
Any consumer of this interface should verify that the return value is not
equal to DDI_SUCCESS
. Incomplete checking for failure codes could result
in inconsistent behavior among platforms.
April 7, 2005 DDI_INTR_GET_SUPPORTED_TYPES(9F)