diff options
Diffstat (limited to 'include/uapi/linux/kdev_t.h')
| -rw-r--r-- | include/uapi/linux/kdev_t.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/uapi/linux/kdev_t.h b/include/uapi/linux/kdev_t.h new file mode 100644 index 000000000000..0d881fa7eb9c --- /dev/null +++ b/include/uapi/linux/kdev_t.h | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | #ifndef _UAPI_LINUX_KDEV_T_H | ||
| 2 | #define _UAPI_LINUX_KDEV_T_H | ||
| 3 | #ifndef __KERNEL__ | ||
| 4 | |||
| 5 | /* | ||
| 6 | Some programs want their definitions of MAJOR and MINOR and MKDEV | ||
| 7 | from the kernel sources. These must be the externally visible ones. | ||
| 8 | */ | ||
| 9 | #define MAJOR(dev) ((dev)>>8) | ||
| 10 | #define MINOR(dev) ((dev) & 0xff) | ||
| 11 | #define MKDEV(ma,mi) ((ma)<<8 | (mi)) | ||
| 12 | #endif /* __KERNEL__ */ | ||
| 13 | #endif /* _UAPI_LINUX_KDEV_T_H */ | ||
