v4l2_m2m_querybuf(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… v4l2_m2m_querybuf β€” the Kernel API Manual, bestie edition πŸ’…

okay so you're looking at v4l2_m2m_querybuf(9), and honestly? she's a whole multiplexer. the multi-queue-aware QUERYBUF one. that's the whole vibe. ✨


πŸŽ€ NAME πŸŽ€

v4l2_m2m_querybuf β€” the multi-queue-aware QUERYBUF multiplexer. that's her. that's the whole job. πŸ’…


🌸 SYNOPSIS 🌸

int v4l2_m2m_querybuf (struct file *file , struct v4l2_m2m_ctx *m2m_ctx
, struct v4l2_buffer *buf );

literally the whole signature, no notes. copy it exactly, bestie. 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • file β€” pointer to struct file. yes girl, the regular file pointer, slaying as always. πŸ‘‘
  • m2m_ctx β€” the m2m context assigned to the instance, given to you by struct v4l2_m2m_ctx. she's the main character of this whole operation. πŸ’–
  • buf β€” pointer to struct v4l2_buffer. the buffer in question. iconic. ⭐

✨ DESCRIPTION ✨

so here's the thing β€” the manpage is not gonna spell it out for you here. it says: see the v4l2_m2m_mmap documentation for details.

that's it. that's the description. go read the v4l2_m2m_mmap docs, bestie, that's where the lore lives. no cap. πŸ“–

lowkey a flex that this section is one sentence long. she said "iykyk" and dipped. πŸ’€

πŸ’œ SEE ALSO πŸ’œ

okay these are all the related things, and I mean all of them β€” not skipping a single one because that's not the energy we bring:

  • kernel file ./include/media/v4l2-mem2mem.h 🌈

then the structs:

  • struct v4l2_m2m_ops(9)
  • struct v4l2_m2m_queue_ctx(9)
  • struct v4l2_m2m_ctx(9)
  • struct v4l2_m2m_buffer(9)

then the getters and schedulers:

then the state girlies:

then the buffer lifecycle crew:

then streaming:

then the commands:

then the classic file ops:

then setup and teardown:

then the queue keepers:

then the "which buffer is it" squad:

then the loopers:

then the vq accessors:

and finally, the removers (aka the cleanup girlies):

and last but never least:


πŸ’€ reminder bestie: this page is short, but the reference list is not. it's giving "she brought her whole friend group."

okay and finally, the little sign-off era: this page lives under ./include/media, and it's dated October 2026 🧚 β€” so yeah, mark your calendar, this is the v4l2_m2m_querybuf(9) era and we're all just living in it. periodt. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from