Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/buf.h
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
* D - Protected by an dependency implementation specific lock | * D - Protected by an dependency implementation specific lock | ||||
*/ | */ | ||||
struct buf { | struct buf { | ||||
struct bufobj *b_bufobj; | struct bufobj *b_bufobj; | ||||
long b_bcount; | long b_bcount; | ||||
void *b_caller1; | void *b_caller1; | ||||
caddr_t b_data; | caddr_t b_data; | ||||
int b_error; | int b_error; | ||||
uint8_t b_iocmd; /* BIO_* bio_cmd from bio.h */ | uint16_t b_iocmd; /* BIO_* bio_cmd from bio.h */ | ||||
uint8_t b_ioflags; /* BIO_* bio_flags from bio.h */ | uint16_t b_ioflags; /* BIO_* bio_flags from bio.h */ | ||||
off_t b_iooffset; | off_t b_iooffset; | ||||
long b_resid; | long b_resid; | ||||
void (*b_iodone)(struct buf *); | void (*b_iodone)(struct buf *); | ||||
daddr_t b_blkno; /* Underlying physical block number. */ | daddr_t b_blkno; /* Underlying physical block number. */ | ||||
off_t b_offset; /* Offset into file. */ | off_t b_offset; /* Offset into file. */ | ||||
TAILQ_ENTRY(buf) b_bobufs; /* (V) Buffer's associated vnode. */ | TAILQ_ENTRY(buf) b_bobufs; /* (V) Buffer's associated vnode. */ | ||||
uint32_t b_vflags; /* (V) BV_* flags */ | uint32_t b_vflags; /* (V) BV_* flags */ | ||||
unsigned short b_qindex; /* (Q) buffer queue index */ | unsigned short b_qindex; /* (Q) buffer queue index */ | ||||
▲ Show 20 Lines • Show All 442 Lines • Show Last 20 Lines |