summaryrefslogtreecommitdiff
path: root/kernel/buf.h
blob: 4616e9ecc92a57215daf1f5f118e0e759effeb33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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];
};