man pages section 9: DDI and DKI Kernel Functions

Exit Print View

Updated: July 2014
 
 

ddi_dev_nintrs(9F)

Name

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);

Interface Level

Solaris DDI specific (Solaris DDI). This interface is obsolete. Use the new interrupt interfaces referenced in Intro(9F). Refer to Writing Device Drivers for Oracle Solaris 11.2 for more information.

Description

The ddi_dev_nintrs() function returns the number of interrupt specifications a device has in *resultp.

Return Values

The ddi_dev_nintrs() function 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.

Context

The ddi_dev_nintrs() function can be called from user, interrupt, or kernel context.

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Obsolete

See Also

isa (4) , ddi_add_intr(9F), ddi_dev_nregs(9F), ddi_dev_regsize(9F), Intro(9F)

Writing Device Drivers for Oracle Solaris 11.2