Add major/minor/mkdev
Maybe apply this change to master
This commit is contained in:
parent
7241838b4c
commit
510bcde894
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue