You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
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];
|
|
};
|
|
|