Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/bio.h
| Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | |||||
| #define BIO_FLUSH 0x05 /* Commit outstanding I/O now */ | #define BIO_FLUSH 0x05 /* Commit outstanding I/O now */ | ||||
| #define BIO_CMD0 0x06 /* Available for local hacks */ | #define BIO_CMD0 0x06 /* Available for local hacks */ | ||||
| #define BIO_CMD1 0x07 /* Available for local hacks */ | #define BIO_CMD1 0x07 /* Available for local hacks */ | ||||
| #define BIO_CMD2 0x08 /* Available for local hacks */ | #define BIO_CMD2 0x08 /* Available for local hacks */ | ||||
| #define BIO_ZONE 0x09 /* Zone command */ | #define BIO_ZONE 0x09 /* Zone command */ | ||||
| #define BIO_SPEEDUP 0x0a /* Upper layers face shortage */ | #define BIO_SPEEDUP 0x0a /* Upper layers face shortage */ | ||||
| /* bio_flags */ | /* bio_flags */ | ||||
| #define BIO_ERROR 0x01 /* An error occurred processing this bio. */ | #define BIO_ERROR_COMPAT 0x01 /* KBI compat on stable/15. */ | ||||
| #define BIO_DONE 0x02 /* This bio is finished. */ | #define BIO_DONE 0x02 /* This bio is finished. */ | ||||
| #define BIO_ONQUEUE 0x04 /* This bio is in a queue & not yet taken. */ | #define BIO_ONQUEUE 0x04 /* This bio is in a queue & not yet taken. */ | ||||
| /* | /* | ||||
| * This bio must be executed after all previous bios in the queue have been | * This bio must be executed after all previous bios in the queue have been | ||||
| * executed, and before any successive bios can be executed. | * executed, and before any successive bios can be executed. | ||||
| */ | */ | ||||
| #define BIO_ORDERED 0x08 | #define BIO_ORDERED 0x08 | ||||
| #define BIO_UNMAPPED 0x10 | #define BIO_UNMAPPED 0x10 | ||||
| #define BIO_TRANSIENT_MAPPING 0x20 | #define BIO_TRANSIENT_MAPPING 0x20 | ||||
| #define BIO_VLIST 0x40 | #define BIO_VLIST 0x40 | ||||
| #define BIO_SWAP 0x200 /* Swap-related I/O */ | #define BIO_SWAP 0x200 /* Swap-related I/O */ | ||||
| #define BIO_ERROR 0x1000 /* An error occurred processing this bio. */ | |||||
| #define BIO_EXTERR 0x2000 | #define BIO_EXTERR 0x2000 | ||||
| #define BIO_SPEEDUP_WRITE 0x4000 /* Resource shortage at upper layers */ | #define BIO_SPEEDUP_WRITE 0x4000 /* Resource shortage at upper layers */ | ||||
| #define BIO_SPEEDUP_TRIM 0x8000 /* Resource shortage at upper layers */ | #define BIO_SPEEDUP_TRIM 0x8000 /* Resource shortage at upper layers */ | ||||
| #define PRINT_BIO_FLAGS "\20\20speedup_trim\17speedup_write\16exterr" \ | #define PRINT_BIO_FLAGS "\20\20speedup_trim\17speedup_write\16exterr" \ | ||||
| "\12swap\7vlist\6transient_mapping\5unmapped" \ | "\12swap\7vlist\6transient_mapping\5unmapped" \ | ||||
| "\4ordered\3onqueue\2done\1error" | "\4ordered\3onqueue\2done\1error" | ||||
| Show All 15 Lines | struct bio { | ||||
| 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. */ | ||||
| int bio_error_compat; /* Error for KBI compat on stable/15 */ | |||||
| long bio_resid; /* Remaining I/O in bytes. */ | long bio_resid; /* Remaining I/O in bytes. */ | ||||
| void (*bio_done)(struct bio *); | void (*bio_done)(struct bio *); | ||||
| void *bio_driver1; /* Private use by the provider. */ | void *bio_driver1; /* Private use by the provider. */ | ||||
| void *bio_driver2; /* Private use by the provider. */ | void *bio_driver2; /* Private use by the provider. */ | ||||
| void *bio_caller1; /* Private use by the consumer. */ | void *bio_caller1; /* Private use by the consumer. */ | ||||
| void *bio_caller2; /* Private use by the consumer. */ | void *bio_caller2; /* Private use by the consumer. */ | ||||
| TAILQ_ENTRY(bio) bio_queue; /* Disksort queue. */ | TAILQ_ENTRY(bio) bio_queue; /* Disksort queue. */ | ||||
| const char *bio_attribute; /* Attribute for BIO_[GS]ETATTR */ | const char *bio_attribute; /* Attribute for BIO_[GS]ETATTR */ | ||||
| ▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines | |||||