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
SPARC architecture specific (SPARC DDI).
DESCRIPTION
ddi_dev_nintrs() returns the number of interrupt specifications a device has.
RETURN VALUES
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.
CONTEXT
ddi_dev_nintrs() can be called from user or interrupt context.
SEE ALSO
ddi_add_intr(9F), ddi_dev_nregs(9F), ddi_dev_regsize(9F)
Sun Microsystems — Last change: 24 Oct 1991