Linux debugging

Check our new training course

Linux debugging, tracing, profiling & perf. analysis

Check our new training course
with Creative Commons CC-BY-SA
lecture and lab materials

Bootlin logo

Elixir Cross Referencer

1
2
3
4
5
6
7
#define major(x) (((x) >> 8) & 0xff)
#define minor(x) ((x) & 0xff)
#define makedev(x,y) (((x)<<8)|((y)&0xff))

//#define makedev(x,y) \
//	((x)*0x100000001ULL)&(0xfffffffffff0)
//	((y)*0x1001 & 0xffff0ff)