clarify some FS comments
This commit is contained in:
parent
d73dd097a5
commit
a5fbfe418a
6 changed files with 69 additions and 46 deletions
8
file.h
8
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue