vb2_queue_add_buffer(9)
β¨ vb2_queue_add_buffer(9) β¨
okay so bestie, welcome to the <pink>Kernel API Manual</pink> π«Ά β this one's a little function from the videobuf2 squad and honestly it does exactly what it says on the tin. no plot twists. no cap. π
π NAME π
vb2_queue_add_buffer β literally just adds a buffer to a queue. that's it. that's the whole vibe. π
πΈ SYNOPSIS πΈ
void vb2_queue_add_buffer (struct vb2_queue *q , struct vb2_buffer *vb ,
unsigned int index );
notice it returns void? yeah. it's not coming back with a status report, it's just doing the thing. main character energy honestly. β¨
π¦ ARGUMENTS π¦
qβ pointer tostruct vb2_queuewith the videobuf2 queue. this is the queue we're sliding stuff into, so likeβ¦ know your queue, bestie. πvbβ pointer tostruct vb2_bufferto be added to the queue. this is the buffer being added, aka the guest of honour arriving at the party. πindexβ index where addvb2_bufferin the queue. yes, that's where it goes. very demure, very mindful, very specific-about-position. π
π₯ SEE ALSO π₯
- Kernel file
./drivers/media/common/videobuf2/videobuf2-core.cβ that's where the source lives, go read it, iykyk π vb2_queue_remove_buffer(9)β the counterpart, for when a buffer needs to leave the function π§ the way they're a matching set fr fr
π reminder bestie: this returns void, so don't go checking a return value that does not exist. that's not a vibe check, that's just a compile error. π
and that's the whole page!! no extra lore, no hidden options, we ate and left no crumbs ππ
β cute little sign-off: this page came from <purple>./drivers/media/common/videobuf2</purple> π, dated <mint>October 2026</mint> π, and it lives under the name <hotpink>vb2_queue_add_buffer(9)</hotpink> because that's the icon it is π 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