xv6-65oo2/kernel/buf.h

13 lines
251 B
C
Raw Permalink Normal View History

struct buf {
int valid; // has data been read from disk?
2019-07-30 16:53:19 +00:00
int disk; // does disk "own" buf?
uint dev;
uint blockno;
struct sleeplock lock;
uint refcnt;
2007-08-24 19:32:36 +00:00
struct buf *prev; // LRU cache list
2006-08-12 22:34:13 +00:00
struct buf *next;
uchar data[BSIZE];
};