v4l2_m2m_decoder_cmd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… v4l2_m2m_decoder_cmd(9) β€” like, the decoder command executor bestie ✨

okay so real talk: this is a page from the Kernel API Manual (v4l2_m2m_decoder_cmd(9), the mem2mem decoder one) and it is so much less scary than the name makes it sound. grab a matcha πŸ“ and let's get into it.


🌸 NAME 🌸

v4l2_m2m_decoder_cmd β€” execute a decoder command. that's it, that's the whole thing. you hand it a command and it goes and does the thing πŸ’…


✨ SYNOPSIS ✨

int v4l2_m2m_decoder_cmd (struct file *file , struct v4l2_m2m_ctx
*m2m_ctx , struct v4l2_decoder_cmd *dc );

like, copy it exactly, no cap β€” those spaces before the commas are canonical, do not come for them 🫢


πŸŽ€ ARGUMENTS πŸŽ€

three args, all pointers, all iconic in their own way:

  • file β€” pointer to struct file. just the file, living its life, being a pointer to it πŸ¦‹
  • m2m_ctx β€” the m2m context assigned to the instance, given by struct v4l2_m2m_ctx. this is the main character of the whole mem2mem situation honestly πŸ‘‘
  • dc β€” pointer to the decoder command. this is where you tell it what to execute. the vibe check, if you will πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

okay this list is long but every single one is here because we do not skip, we do not summarise, we list all of them periodt. the whole thing lives in the kernel file ./include/media/v4l2-mem2mem.h:

iykyk 🌈


that's the whole page bestie, nothing skipped, nothing invented πŸ’œ

and for the cute sign-off: this little love letter to mem2mem comes from the source file ./include/media, dated October 2026, in the Kernel API Manual β€” see you in the kernel tree, mwah πŸŽ€βœ¨

πŸ“¦ where this page comes from