1 #ifndef _SYS_SYSMACROS_H 2 #define _SYS_SYSMACROS_H 3 4 #define major(x) \ 5 ((unsigned)( (((x)>>31>>1) & 0xfffff000) | (((x)>>8) & 0x00000fff) )) 6 #define minor(x) \ 7 ((unsigned)( (((x)>>12) & 0xffffff00) | ((x) & 0x000000ff) )) 8 9 #define makedev(x,y) ( \ 10 (((x)&0xfffff000ULL) << 32) | \ 11 (((x)&0x00000fffULL) << 8) | \ 12 (((y)&0xffffff00ULL) << 12) | \ 13 (((y)&0x000000ffULL)) ) 14 15 #endif 16