bio_iov_iter_bounce(9)
π bio_iov_iter_bounce(9) π
Okay bestie, this page is bio_iov_iter_bounce(9) from the Kernel API Manual, and itβs lowkey all about bouncing buffer data from an iter into a bio. Letβs get into it. β¨
πΈ NAME πΈ
bio_iov_iter_bounce β bounce buffer data from an iter into a bio. Thatβs the whole name vibe, periodt.
π SYNOPSIS π
int bio_iov_iter_bounce (struct bio *bio , struct iov_iter *iter ,
size_t maxlen , size_t minsize );
π¦ ARGUMENTS π¦
bioβ bio to send. This is the bio bestie.iterβ iter to read from / write into.maxlenβ maximum size to bounce.minsizeβ minimum folio allocation size.
β¨ DESCRIPTION β¨
Okay so picture this: itβs a helper for direct I/O implementations that need to bounce buffer because we need to checksum the data or perform other operations that require consistency. Very βwe need things to matchβ energy. π
It allocates folios to back the bounce buffer, and for writes copies the data into it. So writes get their data copied in, no cap.
π«Ά It needs to be paired with bio_iov_iter_unbounce called on completion. That pairing is not optional, bestie β the original says it needs to be paired, so donβt ghost it.
π SEE ALSO π
Kernel file ./block/bio.c is where the neighborhood starts. Hereβs the full friend group, exactly as listed:
bio_reset(9)bio_reuse(9)bio_chain(9)bio_chain_and_submit(9)bio_alloc_bioset(9)bio_kmalloc(9)bio_truncate(9)guard_bio_eod(9)bio_put(9)bio_alloc_clone(9)bio_init_clone(9)bio_full(9)__bio_add_page(9)bio_add_virt_nofail(9)bio_add_page(9)bio_add_folio(9)bio_add_vmalloc_chunk(9)bio_add_vmalloc(9)bio_iov_iter_get_pages(9)bio_iov_iter_unbounce(9)bio_await(9)submit_bio_wait(9)bdev_rw_virt(9)bio_copy_data(9)bio_endio(9)bio_split(9)bio_trim(9)bioset_init(9)
And thatβs the page, bestie! Itβs filed under the Kernel API Manual, source ./block, dated October 2026. Stay iconic, and donβt forget the bio_iov_iter_unbounce pairing ππβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms