|
Kernel Functions for Drivers | ddi_dev_nintrs(9F) |
| ddi_dev_nintrs - return the number of interrupt specifications a device has |
SYNOPSIS
|
#include <sys/conf.h>
#include <sys/ddi.h>
#include <sys/sunddi.h>
int ddi_dev_nintrs(dev_info_t *dip, int *resultp); |
|
Solaris DDI specific (Solaris DDI).
|
|
ddi_dev_nintrs() returns the number of interrupt specifications a device has in *resultp.
|
|
ddi_dev_nintrs() returns:
-
DDI_SUCCESS
- A successful return. The number of interrupt specifications
that the device has is set in resultp.
-
DDI_FAILURE
- The device has no interrupt specifications.
|
|
ddi_dev_nintrs() can be called from user or interrupt context.
|
| |