blob: bbef407d49f98270a63d5632f68eb844f32041fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
struct buf {
int valid; // has data been read from disk?
int disk; // does disk "own" buf?
uint dev;
uint blockno;
struct sleeplock lock;
uint refcnt;
struct buf *prev; // LRU cache list
struct buf *next;
uchar data[BSIZE];
uint ticks; // derived from global variable ticks (trap.c), record ticks when last modified
};
|