annotate src/inode.h @ 149:654f2dadd744

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