Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/bio.h
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | |||||
#define BIO_NOTCLASSIFIED (void *)(~0UL) | #define BIO_NOTCLASSIFIED (void *)(~0UL) | ||||
typedef void bio_task_t(void *); | typedef void bio_task_t(void *); | ||||
/* | /* | ||||
* The bio structure describes an I/O operation in the kernel. | * The bio structure describes an I/O operation in the kernel. | ||||
*/ | */ | ||||
struct bio { | struct bio { | ||||
uint8_t bio_cmd; /* I/O operation. */ | uint16_t bio_cmd; /* I/O operation. */ | ||||
uint8_t bio_flags; /* General flags. */ | uint16_t bio_flags; /* General flags. */ | ||||
uint8_t bio_cflags; /* Private use by the consumer. */ | uint16_t bio_cflags; /* Private use by the consumer. */ | ||||
uint8_t bio_pflags; /* Private use by the provider. */ | uint16_t bio_pflags; /* Private use by the provider. */ | ||||
struct cdev *bio_dev; /* Device to do I/O on. */ | struct cdev *bio_dev; /* Device to do I/O on. */ | ||||
struct disk *bio_disk; /* Valid below geom_disk.c only */ | struct disk *bio_disk; /* Valid below geom_disk.c only */ | ||||
off_t bio_offset; /* Offset into file. */ | off_t bio_offset; /* Offset into file. */ | ||||
long bio_bcount; /* Valid bytes in buffer. */ | long bio_bcount; /* Valid bytes in buffer. */ | ||||
caddr_t bio_data; /* Memory, superblocks, indirect etc. */ | caddr_t bio_data; /* Memory, superblocks, indirect etc. */ | ||||
struct vm_page **bio_ma; /* Or unmapped. */ | struct vm_page **bio_ma; /* Or unmapped. */ | ||||
int bio_ma_offset; /* Offset in the first page of bio_ma. */ | int bio_ma_offset; /* Offset in the first page of bio_ma. */ | ||||
int bio_ma_n; /* Number of pages in bio_ma. */ | int bio_ma_n; /* Number of pages in bio_ma. */ | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |