vb2_destroy_framevec(9)
π NAME π
vb2_destroy_framevec β okay so this one releases a whole vector of mapped pfns, bestie β¨
πΈ SYNOPSIS πΈ
void vb2_destroy_framevec (struct frame_vector *vec );
π ARGUMENTS π
vecβ the vector of pfns / pages that you're about to set free π¦ literally handing it its walking papers.
β¨ DESCRIPTION β¨
So here's the vibe: this function drops all the references to every page in the vector vec β but only if the corresponding pfns are actually backed by pages, iykyk π β and then it frees the vector you passed in. Two-for-one slay π
Fr fr, it's the cleanup bestie. It lets go of the pages and yeets the vector itself. Don't touch vec after this, no cap π
π₯ SEE ALSO π₯
- Kernel file
./drivers/media/common/videobuf2/videobuf2-memops.cβ that's the main character energy right there π vb2_create_framevec(9)β the one that makes the vector, this one's origin story πvb2_common_vm_open(9)vb2_common_vm_close(9)
That's the whole page, babes π«Ά this lil doc lives over in the source tree at ./drivers/media/common/videobuf2 and it's dated October 2026 β so yeah, she's from the future and she ate βπ
π¦ 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