9022 loader.efi: module placement must check memory map
[unleashed.git] / share / man / man9f / ddi_dev_nintrs.9f
blobbfa783a4ea658e04872035a886a640593f909371
1 '\" te
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"
7 .SH NAME
8 ddi_dev_nintrs \- return the number of interrupt specifications a device has
9 .SH SYNOPSIS
10 .LP
11 .nf
12 #include <sys/conf.h>
13 #include <sys/ddi.h>
14 #include <sys/sunddi.h>
18 \fBint\fR \fBddi_dev_nintrs\fR(\fBdev_info_t *\fR\fIdip\fR, \fBint *\fR\fIresultp\fR);
19 .fi
21 .SH INTERFACE LEVEL
22 .sp
23 .LP
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.
27 .SH DESCRIPTION
28 .sp
29 .LP
30 The \fBddi_dev_nintrs()\fR function returns the number of interrupt
31 specifications a device has in \fB*\fR\fIresultp\fR.
32 .SH RETURN VALUES
33 .sp
34 .LP
35 The \fBddi_dev_nintrs()\fR function returns:
36 .sp
37 .ne 2
38 .na
39 \fB\fBDDI_SUCCESS\fR\fR
40 .ad
41 .RS 15n
42 A successful return. The number of interrupt specifications that the device has
43 is set in \fIresultp\fR.
44 .RE
46 .sp
47 .ne 2
48 .na
49 \fB\fBDDI_FAILURE\fR\fR
50 .ad
51 .RS 15n
52 The device has no interrupt specifications.
53 .RE
55 .SH CONTEXT
56 .sp
57 .LP
58 The \fBddi_dev_nintrs()\fR function can be called from user, interrupt, or
59 kernel context.
60 .SH ATTRIBUTES
61 .sp
62 .LP
63 See \fBattributes\fR(5) for descriptions of the following attributes:
64 .sp
66 .sp
67 .TS
68 box;
69 c | c
70 l | l .
71 ATTRIBUTE TYPE  ATTRIBUTE VALUE
73 Interface Stability     Obsolete
74 .TE
76 .SH SEE ALSO
77 .sp
78 .LP
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)
81 .sp
82 .LP
83 \fIWriting Device Drivers\fR