xv6-riscv-kernel/kernel/buf.h

13 lines
251 B
C
Raw Normal View History

struct buf {
int valid; // has data been read from disk?
2019-07-30 18:53:19 +02:00
int disk; // does disk "own" buf?
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;
uchar data[BSIZE];
};