frame_vector_create(9)
π frame_vector_create(9) π
okay bestie, so this one lives in the Kernel API Manual and it's literally the "reserve me a lil parking garage for pinned pfns" function. let's get into it π«Ά
β¨ NAME β¨
frame_vector_create β allocate & initialize structure for pinned pfns π
like, it builds the whole thing from scratch and hands it back ready to go. no cap.
πΈ SYNOPSIS πΈ
struct frame_vector * frame_vector_create (unsigned int nr_frames );
π¦ ARGUMENTS π¦
nr_framesβ number of pfns slots we should reserve π this is you telling the function how many spots to set aside. pick a number, any number (but like, a sensible one).
β DESCRIPTION β
so what it does is: allocate and initialize struct pinned_pfns so it's able to hold nr_pfns pfns. that's the whole vibe. it's giving setup energy β you give it a count, it gives you back a structure all allocated and initialized and ready for pfns to move in. π₯
no surprises, no drama, just a fresh structure with room to breathe. periodt.
π§ SEE ALSO π§
- Kernel file
./drivers/media/common/videobuf2/frame_vector.cβ the source, iykyk π get_vaddr_frames(9)put_vaddr_frames(9)frame_vector_to_pages(9)frame_vector_to_pfns(9)frame_vector_destroy(9)
bestie reminder: every one of yourframe_vector_createcalls deserves a matchingframe_vector_destroyβ closing the loop is main character energy π
and that's the page! brought to you by the good people hanging out in ./drivers/media/common/videobuf2, dated October 2026 β mwah, love u, go pin some pfns π
β¨π
π¦ 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