Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Kernel Functions for Driversddi_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).

DESCRIPTION

 

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

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

 

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

Writing Device Drivers


SunOS 5.9Go To TopLast Changed 2 Dec 1993

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.