bvec_kmap_local(9)
β¨ bvec_kmap_local(9) β¨
okay so we're in the Kernel API Manual bestie, and today's main character is bvec_kmap_local π
π NAME π
bvec_kmap_local β map a bvec into the kernel virtual address space
π¦ SYNOPSIS π¦
void * bvec_kmap_local (struct bio_vec *bvec );
πΈ ARGUMENTS πΈ
bvecβ the bvec you wanna map, like literally the one, that's her π
π₯ DESCRIPTION π₯
okay so listen: bvec_kmap_local maps a bvec into the kernel virtual address space, and that's the whole vibe β¨
but here's the thing β must be called on single-page bvecs only π like do NOT come at her with a multi-page bvec, she will not be doing that, no cap π«Ά
and when you're done? call kunmap_local on the returned address to unmap it. that's it. that's the whole relationship. map, then unmap. balanced. iconic. periodt π
fr fr do not forget the kunmap_local, bestie π the whole point is you clean up after yourself
π SEE ALSO π
- Kernel file
./include/linux/bvec.h struct bio_vec(9)bvec_set_page(9)bvec_set_folio(9)bvec_set_virt(9)bvec_folio(9)memcpy_from_bvec(9)memcpy_to_bvec(9)memzero_bvec(9)bvec_virt(9)bvec_phys(9)
like the whole bvec friend group honestly, go say hi ππ
and that's the page!! mwah π this one lives in ./include/linux, dated October 2026, and yeah β it's bvec_kmap_local(9) signing off π§ββοΈβ go map responsibly bestie, ily π
π¦ 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