shuffle fs.c in bottom-up order
This commit is contained in:
parent
0655445ba9
commit
bcca6c6bde
5 changed files with 324 additions and 328 deletions
2
defs.h
2
defs.h
|
|
@ -120,7 +120,6 @@ void bwrite(struct buf*, uint);
|
|||
void brelse(struct buf*);
|
||||
|
||||
// fs.c
|
||||
extern uint rootdev;
|
||||
void iinit(void);
|
||||
struct inode* iget(uint, uint);
|
||||
void ilock(struct inode*);
|
||||
|
|
@ -138,6 +137,7 @@ struct inode* mknod1(struct inode*, char*, short, short, short);
|
|||
int unlink(char*);
|
||||
void iupdate(struct inode*);
|
||||
int link(char*, char*);
|
||||
struct inode* igetroot(void);
|
||||
|
||||
// number of elements in fixed-size array
|
||||
#define NELEM(x) (sizeof(x)/sizeof((x)[0]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue