1ddi_dev_nregs(9F) Kernel Functions for Drivers ddi_dev_nregs(9F)
2
3
4
6 ddi_dev_nregs - return the number of register sets a device has
7
9 #include <sys/conf.h>
10 #include <sys/ddi.h>
11 #include <sys/sunddi.h>
12
13
14
15 int ddi_dev_nregs(dev_info_t *dip, int *resultp);
16
17
19 Solaris DDI specific (Solaris DDI).
20
22 dip A pointer to the device's dev_info structure.
23
24
25 resultp Pointer to an integer that holds the number of register sets
26 on return.
27
28
30 The ddi_dev_nregs() function returns the number of sets of registers
31 the device has.
32
34 The ddi_dev_nregs() function returns:
35
36 DDI_SUCCESS A successful return. The number of register sets is
37 returned in resultp.
38
39
40 DDI_FAILURE The device has no registers.
41
42
44 The ddi_dev_nregs() function can be called from user, interrupt, or
45 kernel context.
46
48 ddi_dev_nintrs(9F), ddi_dev_regsize(9F)
49
50
51 Writing Device Drivers
52
53
54
55SunOS 5.11 16 Jan 2006 ddi_dev_nregs(9F)