v4l2_m2m_for...src_buf_safe(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 v4l2_m2m_for...src_buf_safe β€” NAME πŸ’…

okay so bestie, this is the Kernel API Manual page for v4l2_m2m_for_each_src_buf_safe β€” it's a macro that iterates over a list of source ready buffers safely, no cap. The way it does the whole "safe" thing is literally the entire point and we'll get to it, but first: the header up top got cut off at v4l2_m2m_for...src_buf_safe(9) (the man page name is basically wearing a crop top, it's fine, that's the vibe) πŸŽ€


✨ SYNOPSIS ✨

v4l2_m2m_for_each_src_buf_safe (m2m_ctx , b , n );

three little args, one big slay 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • m2m_ctx β€” the m2m context assigned to the instance, given by struct v4l2_m2m_ctx. this is the main character of the whole operation tbh πŸ‘‘
  • b β€” the current buffer, of type struct v4l2_m2m_buffer. it's literally the buffer you're looking at right now πŸ’–
  • n β€” used as temporary storage. that's it. that's its whole job. it's the reliable bestie holding your bag πŸ™ˆ

πŸ’œ SEE ALSO πŸ’œ

okay this section is long and I'm obsessed, there's so much lore here. the kernel file lives at ./include/media/v4l2-mem2mem.h β€” go read it, fr fr:

like... that's the whole friend group right there 😭πŸ”₯


ngl this page is short but the company it keeps is stacked. if you're touching m2m buffers, every single one of those is gonna come up eventually. iykyk πŸ’€

and that's the whole page, bestie πŸ’… this masterpiece lives in ./include/media and it's dated October 2026 β€” the Kernel API Manual said periodt, drop the mic, see you in the next one βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from