summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrsc <rsc>2006-09-07 15:31:33 +0000
committerrsc <rsc>2006-09-07 15:31:33 +0000
commit0294e3e2906de29cafd1662956e9539d817d1dba (patch)
tree993d810676e01fea844e2c9f0adc5122d0a9a8b1
parent19297caf0d141e23fa2f5da6e2fb0ffa181d7a82 (diff)
downloadxv6-labs-0294e3e2906de29cafd1662956e9539d817d1dba.tar.gz
xv6-labs-0294e3e2906de29cafd1662956e9539d817d1dba.tar.bz2
xv6-labs-0294e3e2906de29cafd1662956e9539d817d1dba.zip
comments
-rw-r--r--fsvar.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/fsvar.h b/fsvar.h
index ec8d204..015bda4 100644
--- a/fsvar.h
+++ b/fsvar.h
@@ -1,11 +1,12 @@
// in-core file system types
struct inode {
- uint dev;
- uint inum;
- int count;
- int busy;
- short type;
+ uint dev; // Device number
+ uint inum; // Inode number
+ int ref; // Reference count
+ int busy; // Is the inode "locked"?
+
+ short type; // copy of disk inode
short major;
short minor;
short nlink;