xv6-riscv-kernel/kernel/buf.h

13 lines
247 B
C
Raw Normal View History

struct buf {
int valid; // has data been read from disk?
uint dev;
uint blockno;
struct sleeplock lock;
uint refcnt;
2007-08-24 21:32:36 +02:00
struct buf *prev; // LRU cache list
2006-08-13 00:34:13 +02:00
struct buf *next;
2007-08-24 21:32:36 +02:00
struct buf *qnext; // disk queue
uchar data[BSIZE];
};