v4l2_m2m_dqbuf(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… v4l2_m2m_dqbuf β€” the kernel API manual, bestie edition πŸŽ€

okay so. this is page v4l2_m2m_dqbuf(9) from the Kernel API Manual, and honestly? she's a little icon. sit down, hydrate, let's get into it ✨


🌸 NAME 🌸

v4l2_m2m_dqbuf β€” dequeue a source or destination buffer, depending on the type πŸ’–

like, you literally just pull a buffer out of the queue, and which queue it comes from is entirely up to the type. she contains multitudes. no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

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

she takes three (3) things and returns an int. that's the whole vibe. periodt.


✨ ARGUMENTS ✨

  • file β€” pointer to struct file. yes bestie, the file. the whole struct. 🌈
  • m2m_ctx β€” the m2m context assigned to the instance, given by struct v4l2_m2m_ctx. this is her main character energy β€” everything lives in here. πŸ‘‘
  • buf β€” pointer to struct v4l2_buffer. this is where the dequeued buffer info goes, so like… don't hand her a NULL, okay? πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

so there are a LOT of siblings in this family and honestly they're all kind of iconic. first up, the kernel file where all the drama lives:

  • 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)

and then. okay. brace yourself. the full function roster πŸ’€

like… that's the whole friend group. iykyk 🫢


πŸ’€ real talk for a sec: this page gives you the name, the signature, the args and the see-also squad. it does not spell out return values, error codes or any extra behavior, so don't go inventing them, bestie. read the actual source before you ship. ngl that's just good practice.

🌸 cute lil sign-off time 🌸 β€” this page lives in ./include/media, she's dated October 2026, and her manual identity is v4l2_m2m_dqbuf(9). mwah. go dequeue something gorgeous. πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from