1ddi_dev_nintrs(9F) Kernel Functions for Drivers ddi_dev_nintrs(9F)
2
3
4
6 ddi_dev_nintrs - return the number of interrupt specifications a device
7 has
8
10 #include <sys/conf.h>
11 #include <sys/ddi.h>
12 #include <sys/sunddi.h>
13
14
15
16 int ddi_dev_nintrs(dev_info_t *dip, int *resultp);
17
18
20 Solaris DDI specific (Solaris DDI). This interface is obsolete. Use the
21 new interrupt interfaces referenced in Intro(9F). Refer to Writing
22 Device Drivers for more information.
23
25 The ddi_dev_nintrs() function returns the number of interrupt specifi‐
26 cations a device has in *resultp.
27
29 The ddi_dev_nintrs() function returns:
30
31 DDI_SUCCESS A successful return. The number of interrupt specifica‐
32 tions that the device has is set in resultp.
33
34
35 DDI_FAILURE The device has no interrupt specifications.
36
37
39 The ddi_dev_nintrs() function can be called from user, interrupt, or
40 kernel context.
41
43 See attributes(5) for descriptions of the following attributes:
44
45
46
47
48 ┌─────────────────────────────┬─────────────────────────────┐
49 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
50 ├─────────────────────────────┼─────────────────────────────┤
51 │Interface Stability │Obsolete │
52 └─────────────────────────────┴─────────────────────────────┘
53
55 isa(4), sbus(4), ddi_add_intr(9F), ddi_dev_nregs(9F), ddi_dev_reg‐
56 size(9F), Intro(9F)
57
58
59 Writing Device Drivers
60
61
62
63SunOS 5.11 16 Jan 2006 ddi_dev_nintrs(9F)