xv6/buf.h
rtm 11a9947f1a bread
iget
mkfs makes a file system image
put this in your .bochsrc:
ata0-slave: type=disk, mode=flat, path="fs.img", cylinders=1024, heads=1, spt=1
2006-07-21 13:18:04 +00:00

5 lines
67 B
C

struct buf {
int flags;
uchar data[512];
};
#define B_BUSY 0x1