bio_uncopy_user(9)
π bio_uncopy_user(9) β from the Kernel API Manual, bestie
okay so this is a kernel API page, it lives in the Kernel API Manual, and the whole vibe is "we mapped a bio earlier, now we gotta clean it up." it's literally the cleanup era. π§Ήβ¨
β¨ NAME β¨
bio_uncopy_user β finish a bio that was previously mapped π
like, the cool-down function. the "we're done here, undo the copy situation" moment. no cap.
πΈ SYNOPSIS πΈ
int bio_uncopy_user (struct bio *bio );
π¦ ARGUMENTS π¦
bioβ the bio being terminated π (not in a scary way!! in a "this request is wrapping up" way. it's the bio that's getting finished.)
π DESCRIPTION π
so here's the tea, bestie π: this frees the pages that were allocated from bio_copy_user_iov, and β important bit β it writes the data back to user space in case of a read. so if it was a read, the data makes its way home. iconic behavior honestly. π«Ά
tl;dr: free the pages, and on a read, copy the goods back out to userspace. two jobs, one function, main character energy. β¨
π SEE ALSO π
- Kernel file
./block/blk-map.c bio_copy_from_iter(9)bio_copy_to_iter(9)bio_copy_kern(9)blk_rq_map_user_iov(9)blk_rq_unmap_user(9)blk_rq_map_kern(9)
the whole friend group, fr fr. go read them, iykyk π
lowkey reminder: this page is filed under ./block, and it's dated October 2026 β so yeah, mark your calendar, bestie. π
that's the whole page!! mwah π go finish that bio and slay β¨π π¦
π¦ 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