diff options
author | Robert Morris <[email protected]> | 2011-10-11 06:41:37 -0400 |
---|---|---|
committer | Robert Morris <[email protected]> | 2011-10-11 06:41:37 -0400 |
commit | a5fbfe418abd9bdb876407a73b479cdc39046e9a (patch) | |
tree | 9686a62d46f03753dfdcf8564053921a6ead031a /file.h | |
parent | d73dd097a529bc9d13f514ae6884c4d96a0fffa8 (diff) | |
download | xv6-labs-a5fbfe418abd9bdb876407a73b479cdc39046e9a.tar.gz xv6-labs-a5fbfe418abd9bdb876407a73b479cdc39046e9a.tar.bz2 xv6-labs-a5fbfe418abd9bdb876407a73b479cdc39046e9a.zip |
clarify some FS comments
Diffstat (limited to 'file.h')
-rw-r--r-- | file.h | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -9,8 +9,7 @@ struct file { }; -// in-core file system types - +// in-memory copy of an inode struct inode { uint dev; // Device number uint inum; // Inode number @@ -24,12 +23,11 @@ struct inode { uint size; uint addrs[NDIRECT+1]; }; - #define I_BUSY 0x1 #define I_VALID 0x2 -// device implementations - +// table mapping major device number to +// device functions struct devsw { int (*read)(struct inode*, char*, int); int (*write)(struct inode*, char*, int); |