Mercurial > hg > Members > menikon > CbC_xv6
annotate src/inode.h @ 149:654f2dadd744
add inode.h
author | menikon |
---|---|
date | Mon, 16 Dec 2019 15:45:51 +0900 |
parents | |
children | eda7ea83f4f3 |
rev | line source |
---|---|
149 | 1 typedef struct inode <Impl> { |
2 uint dev; // Device number | |
3 uint inum; // Inode number | |
4 int ref; // Reference count | |
5 int flags; // I_BUSY, I_VALID | |
6 | |
7 short type; // copy of disk inode | |
8 short major; | |
9 short minor; | |
10 short nlink; | |
11 uint size; | |
12 uint addrs[NDIRECT+1]; | |
13 } inode; |