1BIO_ADVANCE(9) The Linux VFS BIO_ADVANCE(9)
2
3
4
6 bio_advance - increment/complete a bio by some number of bytes
7
9 void bio_advance(struct bio * bio, unsigned bytes);
10
12 bio
13 bio to advance
14
15 bytes
16 number of bytes to complete
17
19 This updates bi_sector, bi_size and bi_idx; if the number of bytes to
20 complete doesn't align with a bvec boundary, then bv_len and bv_offset
21 will be updated on the last bvec as well.
22
23 bio will then represent the remaining, uncompleted portion of the io.
24
26Kernel Hackers Manual 3.10 June 2019 BIO_ADVANCE(9)