xv6-riscv-rust/kernel/buf.h

13 lines
247 B
C

struct buf {
int valid; // has data been read from disk?
uint dev;
uint blockno;
struct sleeplock lock;
uint refcnt;
struct buf *prev; // LRU cache list
struct buf *next;
struct buf *qnext; // disk queue
uchar data[BSIZE];
};