bvec_set_page(9)
π bvec_set_page β NAME π
okay so bestie, bvec_set_page is literally the glow-up ritual for a bvec: it initializes a bvec based off a struct page. that's it, that's the whole vibe. iconic behaviour, no notes. β¨
This page lives in the Kernel API Manual btw β that's the manual name, folded in right here at the top so you never have to wonder where you are. π«Ά
β¨ SYNOPSIS β¨
void bvec_set_page (struct bio_vec *bv , struct page *page , unsigned
int len , unsigned int offset );
like, look at that signature. it's giving "I take four things and I return void." main character energy fr fr. π
π ARGUMENTS π
bvβ the bvec you're initializing, bestie. this is the one getting set up, so hand it over and let it shine. πpageβ thestruct pageyour bvec should point to. that's its whole target, its person, its roman empire. π―lenβ the length of the bvec. how much we're working with, no cap. πoffsetβ the offset into the page. like, where in the page we're starting. lowkey important. π
real talk: all four of these are required, and the return type is void β you get nothing back, you just get the bvec set. that's the deal. π
π¦ SEE ALSO π¦
the whole friend group, gathered for you, in this exact order:
Kernel file ./include/linux/bvec.h struct bio_vec(9)bvec_set_folio(9)bvec_set_virt(9)bvec_folio(9)bvec_kmap_local(9)memcpy_from_bvec(9)memcpy_to_bvec(9)memzero_bvec(9)bvec_virt(9)bvec_phys(9)
like, go read those too, they're all part of the lore. π
πΈ sign-off πΈ
mwah, that's the whole page, bestie! sourced from ./include/linux, dated October 2026 β put that in your calendar and slay. πππ¦
periodt. β¨
π¦ 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