v4l2_m2m_next_src_buf(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… v4l2_m2m_next_src_buf(9) β€” Kernel API Manual, but make it make sense

okay so bestie, welcome to the v4l2_m2m_next_src_buf page ✨ this one lives in the Kernel API Manual and it's honestly a little legend. tiny function, huge main character energy. let's get into it 🫢


🌸 NAME 🌸

v4l2_m2m_next_src_buf β€” returns the next source buffer from the list of ready buffers. that's it. that's the whole vibe πŸ’…


✨ SYNOPSIS ✨

struct vb2_v4l2_buffer * v4l2_m2m_next_src_buf (struct v4l2_m2m_ctx
*m2m_ctx );

like, look at her. returns a struct vb2_v4l2_buffer *, takes a struct v4l2_m2m_ctx *. no cap, that's the whole signature πŸ”₯


πŸŽ€ ARGUMENTS πŸŽ€

  • m2m_ctx β€” the m2m context assigned to the instance, given to you by struct v4l2_m2m_ctx. it's the little passport your instance carries around so the mem2mem machinery knows whose buffers are whose πŸ¦‹

πŸ‘‘ SEE ALSO πŸ‘‘

okay this is the part where she name-drops literally everyone at the party 😭 and yes we're keeping every single one, no skipping, no "etc." β€” grab a snack πŸ“

the kernel file:

  • ./include/media/v4l2-mem2mem.h

and the whole extended friend group:


ngl if you're reading this page you probably want v4l2_m2m_next_src_buf specifically β€” the next src buffer out of the ready list β€” and not one of the sixty other functions above. but hey, now you know the whole squad 😌

okay that's the page!! mwah πŸ’– this one's filed under ./include/media and dated October 2026, and the header up top still goes by v4l2_m2m_next_src_buf(9) if you need to cite her. slay, go read your buffers πŸ§šβ€β™€οΈπŸŒˆ

πŸ“¦ where this page comes from