Add major/minor/mkdev

Maybe apply this change to master
This commit is contained in:
Frans Kaashoek 2019-08-15 10:35:59 -04:00
parent 7241838b4c
commit 510bcde894

View file

@ -9,6 +9,9 @@ struct file {
short major; // FD_DEVICE
};
#define major(dev) ((dev) >> 16 & 0xFFFF)
#define minor(dev) ((dev) & 0xFFFF)
#define mkdev(m,n) ((uint)((m)<<16| (n)))
// in-memory copy of an inode
struct inode {