forked from dtrace4linux/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmkdev.h
More file actions
28 lines (22 loc) · 859 Bytes
/
mkdev.h
File metadata and controls
28 lines (22 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
* 32-bit Solaris device major/minor sizes.
*/
#define NBITSMAJOR32 14
#define NBITSMINOR32 18
#define MAXMAJ32 0x3ffful /* SVR4 max major value */
#define MAXMIN32 0x3fffful /* SVR4 max minor value */
#ifdef _LP64
#define NBITSMAJOR64 32 /* # of major device bits in 64-bit Solaris */
#define NBITSMINOR64 32 /* # of minor device bits in 64-bit Solaris */
#define MAXMAJ64 0xfffffffful /* max major value */
#define MAXMIN64 0xfffffffful /* max minor value */
#define NBITSMAJOR NBITSMAJOR64
#define NBITSMINOR NBITSMINOR64
#define MAXMAJ MAXMAJ64
#define MAXMIN MAXMIN64
#else /* !_LP64 */
#define NBITSMAJOR NBITSMAJOR32
#define NBITSMINOR NBITSMINOR32
#define MAXMAJ MAXMAJ32
#define MAXMIN MAXMIN32
#endif /* !_LP64 */