logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

kdev_t.h (383B)


  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _LINUX_KDEV_T_H
  3. #define _LINUX_KDEV_T_H
  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 /* _LINUX_KDEV_T_H */