1getminor(9F) Kernel Functions for Drivers getminor(9F)
2
3
4
6 getminor - get minor device number
7
9 #include <sys/types.h>
10 #include <sys/mkdev.h>
11 #include <sys/ddi.h>
12
13
14
15 minor_t getminor(dev_t dev);
16
17
19 Architecture independent level 1 (DDI/DKI).
20
22 dev Device number.
23
24
26 The getminor() function extracts the minor number from a device number.
27
29 The minor number.
30
32 The getminor() function can be called from user, interrupt, or kernel
33 context.
34
36 See the getmajor(9F) manual page for an example of how to use getmiā
37 nor().
38
40 getmajor(9F), makedevice(9F)
41
42
43 Writing Device Drivers
44
46 No validity checking is performed. If dev is invalid, an invalid number
47 is returned.
48
49
50
51SunOS 5.11 16 Jan 2006 getminor(9F)