summaryrefslogtreecommitdiff
path: root/buf.h
blob: ccf7f8bc3bbe148f5786fa61ebf34b1f3c50e657 (plain)
1
2
3
4
5
6
7
8
9
10
struct buf {
  int flags;
  uint dev;
  uint sector;
  struct buf *prev;
  struct buf *next;
  uchar data[512];
};
#define B_BUSY 0x1  // buffer is locked by some process
#define B_VALID 0x2 // buffer contains the data of the sector