Luna/libc/include/bits/makedev.h

11 lines
277 B
C
Raw Normal View History

#ifndef _BITS_MAKEDEV_H
#define _BITS_MAKEDEV_H
#include <bits/fixed-size-types.h>
#define luna_dev_major(dev) (__u32_t)((dev) >> 32)
#define luna_dev_minor(dev) (__u32_t)((dev)&0xffffffff)
#define luna_dev_makedev(maj, min) (((__u64_t)(maj) << 32) | (__u64_t)(min))
#endif