buffer_head Struct Reference

#include <fs.h>


Data Fields

char * b_data
 pointer to data block (1024 bytes)
unsigned long b_size
 block size
unsigned long b_blocknr
 block number
dev_t b_dev
 device (0 = free)
unsigned short b_count
 users using this block
unsigned char b_uptodate
unsigned char b_dirt
 0-clean,1-dirty
unsigned char b_lock
 0 - ok, 1 -locked
unsigned char b_req
 0 if the buffer has been invalidated
wait_queueb_wait
buffer_headb_prev
 doubly linked list of hash-queue
buffer_headb_next
buffer_headb_prev_free
 doubly linked list of buffers
buffer_headb_next_free
buffer_headb_this_page
 circular list of buffers in one page
buffer_headb_reqnext
 request queue


Detailed Description

Definition at line 158 of file fs.h.


Field Documentation

unsigned long buffer_head::b_blocknr

block number

Definition at line 161 of file fs.h.

unsigned short buffer_head::b_count

users using this block

Definition at line 163 of file fs.h.

char* buffer_head::b_data

pointer to data block (1024 bytes)

Definition at line 159 of file fs.h.

Referenced by msdos_sread(), and sysv_bread().

dev_t buffer_head::b_dev

device (0 = free)

Definition at line 162 of file fs.h.

unsigned char buffer_head::b_dirt

0-clean,1-dirty

Definition at line 165 of file fs.h.

unsigned char buffer_head::b_lock

0 - ok, 1 -locked

Definition at line 166 of file fs.h.

Referenced by lock_buffer(), unlock_buffer(), and wait_on_buffer().

struct buffer_head* buffer_head::b_next

Definition at line 170 of file fs.h.

struct buffer_head* buffer_head::b_next_free

Definition at line 172 of file fs.h.

struct buffer_head* buffer_head::b_prev

doubly linked list of hash-queue

Definition at line 169 of file fs.h.

struct buffer_head* buffer_head::b_prev_free

doubly linked list of buffers

Definition at line 171 of file fs.h.

unsigned char buffer_head::b_req

0 if the buffer has been invalidated

Definition at line 167 of file fs.h.

struct buffer_head* buffer_head::b_reqnext

request queue

Definition at line 174 of file fs.h.

unsigned long buffer_head::b_size

block size

Definition at line 160 of file fs.h.

struct buffer_head* buffer_head::b_this_page

circular list of buffers in one page

Definition at line 173 of file fs.h.

unsigned char buffer_head::b_uptodate

Definition at line 164 of file fs.h.

struct wait_queue* buffer_head::b_wait

Definition at line 168 of file fs.h.

Referenced by unlock_buffer().


The documentation for this struct was generated from the following file:
Generated on Mon May 1 21:47:02 2006 for KernelAPI by  doxygen 1.4.6-5