From a5fbfe418abd9bdb876407a73b479cdc39046e9a Mon Sep 17 00:00:00 2001 From: Robert Morris Date: Tue, 11 Oct 2011 06:41:37 -0400 Subject: clarify some FS comments --- file.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'file.h') diff --git a/file.h b/file.h index d123696..c02f76c 100644 --- a/file.h +++ b/file.h @@ -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); -- cgit v1.2.3