diff options
author | rtm <rtm> | 2006-07-21 13:18:04 +0000 |
---|---|---|
committer | rtm <rtm> | 2006-07-21 13:18:04 +0000 |
commit | 11a9947f1a68e23001690955d8d0975ad4d6cf0c (patch) | |
tree | ceb2f6bde6a8c88e3e9e4d022a23185d8cb6d37e /defs.h | |
parent | 29270816285978e44b317c6e5c7bfa7a89ec24dd (diff) | |
download | xv6-labs-11a9947f1a68e23001690955d8d0975ad4d6cf0c.tar.gz xv6-labs-11a9947f1a68e23001690955d8d0975ad4d6cf0c.tar.bz2 xv6-labs-11a9947f1a68e23001690955d8d0975ad4d6cf0c.zip |
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
Diffstat (limited to 'defs.h')
-rw-r--r-- | defs.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -87,6 +87,14 @@ void fd_incref(struct fd *fd); // ide.c void ide_init(void); void ide_intr(void); -void* ide_start_read(uint secno, void *dst, uint nsecs); +void* ide_start_read(int diskno, uint secno, void *dst, uint nsecs); int ide_finish_read(void *); +// bio.c +struct buf; +struct buf *bread(uint, uint); +void brelse(struct buf *); + +// fs.c +struct inode * iget(uint dev, uint inum); +void iput(struct inode *ip); |