2 .\" Copyright (c) 2006, Sun Microsystems, Inc.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH DDI_DEV_NINTRS 9F "Jan 16, 2006"
8 ddi_dev_nintrs \- return the number of interrupt specifications a device has
14 #include <sys/sunddi.h>
18 \fBint\fR \fBddi_dev_nintrs\fR(\fBdev_info_t *\fR\fIdip\fR, \fBint *\fR\fIresultp\fR);
24 Solaris DDI specific (Solaris DDI). This interface is obsolete. Use the new
25 interrupt interfaces referenced in \fBIntro\fR(9F). Refer to \fIWriting Device
26 Drivers\fR for more information.
30 The \fBddi_dev_nintrs()\fR function returns the number of interrupt
31 specifications a device has in \fB*\fR\fIresultp\fR.
35 The \fBddi_dev_nintrs()\fR function returns:
39 \fB\fBDDI_SUCCESS\fR\fR
42 A successful return. The number of interrupt specifications that the device has
43 is set in \fIresultp\fR.
49 \fB\fBDDI_FAILURE\fR\fR
52 The device has no interrupt specifications.
58 The \fBddi_dev_nintrs()\fR function can be called from user, interrupt, or
63 See \fBattributes\fR(5) for descriptions of the following attributes:
71 ATTRIBUTE TYPE ATTRIBUTE VALUE
73 Interface Stability Obsolete
79 \fBisa\fR(4), \fBsbus\fR(4), \fBddi_add_intr\fR(9F), \fBddi_dev_nregs\fR(9F),
80 \fBddi_dev_regsize\fR(9F), \fBIntro\fR(9F)
83 \fIWriting Device Drivers\fR