kdev_t.h 320 B

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