xv6-65oo2/buf.h

11 lines
233 B
C
Raw Normal View History

struct buf {
int flags;
uint dev;
uint sector;
2006-08-12 22:34:13 +00:00
struct buf *prev;
struct buf *next;
uchar data[512];
};
2006-09-08 14:36:44 +00:00
#define B_BUSY 0x1 // buffer is locked by some process
#define B_VALID 0x2 // buffer contains the data of the sector