v4l2_m2m_src...emove_by_buf(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ v4l2_m2m_src_buf_remove_by_buf β€” the Kernel API Manual, bestie edition ✨

okay so real talk, this page is from the Kernel API Manual and it's literally about yanking one specific source buffer out of the ready-buffer list. that's it. that's the whole vibe. πŸ’…


🌸 NAME 🌸

v4l2_m2m_src_buf_remove_by_buf β€” take off the exact source buffer from the list of ready buffers. not a cousin, not a lookalike, the exact one. 🎯


✨ SYNOPSIS ✨

void v4l2_m2m_src_buf_remove_by_buf (struct v4l2_m2m_ctx *m2m_ctx ,
struct vb2_v4l2_buffer *vbuf );

void, meaning it hands nothing back. it just does the thing and dips. 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • m2m_ctx β€” the m2m context that's assigned to the instance, and it comes in as a struct v4l2_m2m_ctx. it's giving main character energy because everything else revolves around it. πŸ‘‘
  • vbuf β€” the buffer that's gonna get removed. the one. the chosen one. πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹

first things first, the kernel file lives at ./include/media/v4l2-mem2mem.h β€” that's where the magic is. then we got the whole extended friend group, no cap:

like, that's the whole group chat right there. iykyk. πŸ’€


ngl there are no OPTIONS, no exit statuses, no env vars on this one β€” it's a void function, so don't go looking for a return value that isn't there. πŸ™ˆ

this little love letter to ./include/media is dated October 2026 β€” and yes, that's the source and the version, bestie, we put it in the sign-off because we're classy like that. πŸŽ€βœ¨πŸ¦‹ slay.

πŸ“¦ where this page comes from