kdev_t.h 378 B

12345678910111213
  1. #ifndef _UAPI_LINUX_KDEV_T_H
  2. #define _UAPI_LINUX_KDEV_T_H
  3. #ifndef __KERNEL__
  4. /*
  5. Some programs want their definitions of MAJOR and MINOR and MKDEV
  6. from the kernel sources. These must be the externally visible ones.
  7. */
  8. #define MAJOR(dev) ((dev)>>8)
  9. #define MINOR(dev) ((dev) & 0xff)
  10. #define MKDEV(ma,mi) ((ma)<<8 | (mi))
  11. #endif /* __KERNEL__ */
  12. #endif /* _UAPI_LINUX_KDEV_T_H */