UNIX xv6 (rev8, 9/1/15)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions | Variables
bio.c File Reference
#include "types.h"
#include "defs.h"
#include "param.h"
#include "spinlock.h"
#include "fs.h"
#include "buf.h"

Go to the source code of this file.

Functions

void binit (void)
 
struct bufbread (uint dev, uint blockno)
 
void bwrite (struct buf *b)
 
void brelse (struct buf *b)
 

Variables

struct {
   struct spinlock   lock
 
   struct buf   buf [NBUF]
 
   struct buf   head
 
bcache
 

Function Documentation

void binit ( void  )

Definition at line 40 of file bio.c.

struct buf* bread ( uint  dev,
uint  blockno 
)

Definition at line 100 of file bio.c.

void brelse ( struct buf b)

Definition at line 124 of file bio.c.

void bwrite ( struct buf b)

Definition at line 113 of file bio.c.

Variable Documentation

struct { ... } bcache
struct buf buf[NBUF]

Definition at line 32 of file bio.c.

struct buf head

Definition at line 36 of file bio.c.

struct spinlock lock

Definition at line 31 of file bio.c.