Mercurial > hg > CbC > CbC_xv6
annotate src/inode.h @ 309:c6cbe4711e02
tweak
author | menikon |
---|---|
date | Mon, 03 Feb 2020 15:29:54 +0900 |
parents | eda7ea83f4f3 |
children |
rev | line source |
---|---|
159
eda7ea83f4f3
impl file interface
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
149
diff
changeset
|
1 typedef struct inode <Impl, Isa> impl file { |
149 | 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; |