first commit
This commit is contained in:
12
kernel/buf.h
Normal file
12
kernel/buf.h
Normal file
@ -0,0 +1,12 @@
|
||||
struct buf {
|
||||
int valid; // has data been read from disk?
|
||||
int disk; // does disk "own" buf?
|
||||
uint dev;
|
||||
uint blockno;
|
||||
struct sleeplock lock;
|
||||
uint refcnt;
|
||||
struct buf *prev; // LRU cache list
|
||||
struct buf *next;
|
||||
uchar data[BSIZE];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user