2006-07-21 15:18:04 +02:00
|
|
|
struct buf {
|
2019-07-29 23:33:16 +02:00
|
|
|
int valid; // has data been read from disk?
|
2019-07-30 18:53:19 +02:00
|
|
|
int disk; // does disk "own" buf?
|
2024-05-24 11:26:40 +02:00
|
|
|
u32 dev;
|
|
|
|
u32 blockno;
|
2016-09-11 23:24:04 +02:00
|
|
|
struct sleeplock lock;
|
2024-05-24 11:26:40 +02:00
|
|
|
u32 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;
|
2024-05-24 11:26:40 +02:00
|
|
|
u8 data[BSIZE];
|
2006-07-21 15:18:04 +02:00
|
|
|
};
|
2007-08-27 16:09:30 +02:00
|
|
|
|