vb2_core_remove_bufs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… vb2_core_remove_bufs β€” the kernel API manual moment

okay so first things first: this page lives in the Kernel API Manual section 9, and its whole name is literally vb2_core_remove_bufs(9). Bookmark it, bestie. πŸŽ€


✨ NAME ✨

vb2_core_remove_bufs β€” and ngl the description field here is just… empty? Like the manpage authors said "the name says it all" and clocked out. Iconic of them honestly. The function removes bufs. That's the vibe. πŸ¦‹


🌸 SYNOPSIS 🌸

int vb2_core_remove_bufs (struct vb2_queue *q , unsigned int start ,
       unsigned int count );

she takes three things and gives you back an int, periodt.


πŸ’– ARGUMENTS πŸ’–

girl, here's the whole cast of characters:

  • q β€” a pointer to a struct vb2_queue that's carrying the videobuf2 queue. this is the main character of the story.
  • start β€” the first index of the range of buffers we're about to remove. where the slay begins, basically.
  • count β€” how many buffers we're removing. the size of the little buffer exodus.

πŸ”₯ RETURN πŸ”₯

returns zero on success πŸŽ‰ β€” and an error code otherwise 😭. that's it. that's the return value. no notes.


πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, and yes i'm listing every single one because we don't do half-finished over here πŸ’…

kicking it off with the kernel file itself: ./include/media/videobuf2-core.h

then all the icons:

like i said. the whole group chat. 🫢


lowkey reminder: this page is filed under ./include/media and it's dated October 2026 β€” so when you're reading it, know that future-you is cheering you on from the source tree 🌈⭐

k bye bestie, go remove some bufs responsibly πŸ’œπŸ§š

πŸ“¦ where this page comes from