xv6-riscv-kernel/kernel/buf.h

12 lines
329 B
C
Raw Normal View History

struct buf {
2024-06-15 16:55:06 +02:00
int valid; // has data been read from disk?
int disk; // does disk "own" buf?
u32 dev;
u32 blockno;
struct sleeplock lock;
2024-06-15 16:55:06 +02:00
u32 refcnt;
struct buf *prev; // LRU cache list
struct buf *next;
u8 data[BSIZE];
};