xv6/bio.c File Reference
#include "types.h"
#include "defs.h"
#include "param.h"
#include "spinlock.h"
#include "buf.h"
Go to the source code of this file.
Function Documentation
| static struct buf* bget |
( |
uint |
dev, |
|
|
uint |
sector | |
|
) |
| | [static, read] |
Definition at line 62 of file bio.c.
References acquire(), B_BUSY, bcache, buf::dev, buf::flags, buf::next, panic(), buf::prev, release(), buf::sector, and sleep().
Referenced by bread().
Definition at line 97 of file bio.c.
References B_VALID, bget(), buf::flags, and iderw().
Referenced by balloc(), bfree(), bmap(), bzero(), dirlookup(), ialloc(), ilock(), itrunc(), iupdate(), readi(), readsb(), and writei().
| void brelse |
( |
struct buf * |
b |
) |
|
Definition at line 119 of file bio.c.
References acquire(), B_BUSY, bcache, buf::flags, buf::next, panic(), buf::prev, release(), and wakeup().
Referenced by balloc(), bfree(), bmap(), bzero(), dirlookup(), ialloc(), ilock(), itrunc(), iupdate(), readi(), readsb(), and writei().
| void bwrite |
( |
struct buf * |
b |
) |
|
Definition at line 109 of file bio.c.
References B_BUSY, B_DIRTY, buf::flags, iderw(), and panic().
Referenced by balloc(), bfree(), bmap(), bzero(), ialloc(), iupdate(), and writei().
Variable Documentation
Definition at line 32 of file bio.c.
Definition at line 36 of file bio.c.
Definition at line 31 of file bio.c.