table of contents
other versions
- stretch 4.9.168-1
BIO_ADVANCE(9) | The Linux VFS | BIO_ADVANCE(9) |
NAME¶
bio_advance - increment/complete a bio by some number of bytesSYNOPSIS¶
void bio_advance(struct bio * bio, unsigned bytes);
ARGUMENTS¶
biobio to advance
bytes
number of bytes to complete
DESCRIPTION¶
This updates bi_sector, bi_size and bi_idx; if the number of bytes to complete doesn't align with a bvec boundary, then bv_len and bv_offset will be updated on the last bvec as well.bio will then represent the remaining, uncompleted portion of the io.
COPYRIGHT¶
April 2019 | Kernel Hackers Manual 4.9. |