v4l2_m2m_buf_queue(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… v4l2_m2m_buf_queue(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” this one's a lil function called v4l2_m2m_buf_queue, and ngl it's giving "small but crucial," the quiet main-character moment of the mem2mem pipeline ✨


🌸 NAME 🌸

v4l2_m2m_buf_queue β€” add a buffer to the proper ready buffers list. that's it, that's the whole job, and she does it flawlessly πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

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

literally just two things in, no return value out β€” void said "i'm not giving you anything back, and that's on purpose" πŸ’€


πŸŽ€ ARGUMENTS πŸŽ€

  • m2m_ctx β€” the m2m context assigned to the instance, given to you by struct v4l2_m2m_ctx. she's the one holding the vibes for this instance 🫢
  • vbuf β€” a pointer to struct vb2_v4l2_buffer. yes bestie, a pointer, so keep that thing alive πŸ™ˆ

⭐ DESCRIPTION ⭐

Call this from vb2_queue_ops->ops->buf_queue β€” that's the vb2_queue_ops callback, iykyk. that's the whole instruction: it's a callback-time function, so you call it from there, not wherever you feel like it 🧚


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./include/media/v4l2-mem2mem.h, plus the whole friend group:

like, the entire extended friend group showed up to the group chat. iconic πŸ‘‘


and that's the page!! πŸ“ this lil slice of wisdom lives over in the kernel files under ./include/media, stamped October 2026 β€” mwah, love u, go queue those buffers bestie πŸ’œπŸ¦‹βœ¨

πŸ“¦ where this page comes from