Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct bio {
- sector_t bi_sector;
- struct bio *bi_next; /* request queue link */
- struct block_device *bi_bdev;
- unsigned long bi_flags; /* status, command, etc */
- unsigned long bi_rw; /* bottom bits READ/WRITE, top bits priority
- * top bits priority
- */
- unsigned short bi_vcnt; /* how many bio_vec's */
- unsigned short bi_idx; /* current index into bvl_vec */
- /* Number of segments in this BIO after
- * physical address coalescing is performed.
- */
- unsigned short bi_phys_segments;
- /* Number of segments after physical and DMA remapping
- * hardware coalescing is performed.
- */
- unsigned short bi_hw_segments;
- unsigned int bi_size; /* residual I/O count */
- /*
- * To keep track of the max hw size, we account for the
- * sizes of the first and last virtually mergeable segments
- * in this bio
- */
- unsigned int bi_hw_front_size;
- unsigned int bi_hw_back_size;
- unsigned int bi_max_vecs; /* max bvl_vecs we can hold */
- struct bio_vec *bi_io_vec; /* the actual vec list */
- bio_end_io_t *bi_end_io;
- atomic_t bi_cnt; /* pin count */
- void *bi_private;
- bio_destructor_t *bi_destructor; /* destructor */
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement