xv6-65oo2/kernel/buf.h

14 lines
286 B
C
Raw 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;
2007-08-24 19:32:36 +00:00
struct buf *qnext; // disk queue
uchar data[BSIZE];
};