v4l2_m2m_poll(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ v4l2_m2m_poll(9) ✨

okay bestie, welcome to the Kernel API Manual πŸ’… this one's a little function from the media crew and honestly it's giving "poll but make it mem2mem" energy. let's get into it πŸŽ€


🌸 NAME 🌸

v4l2_m2m_poll β€” poll replacement, for destination buffers only πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

__poll_t v4l2_m2m_poll (struct file *file , struct v4l2_m2m_ctx *m2m_ctx
, struct poll_table_struct *wait );

πŸ’– ARGUMENTS πŸ’–

  • file β€” pointer to struct file πŸ“„ like, the file you're polling, obviously
  • m2m_ctx β€” the m2m context assigned to the instance, handed to you by struct v4l2_m2m_ctx 🫢
  • wait β€” pointer to struct poll_table_struct ⏳

πŸ”₯ DESCRIPTION πŸ”₯

so you call this from the driver's poll function, mkay? it will poll both queues πŸ’…

here's the tea: if a buffer is available to dequeue (with dqbuf) from the source queue, this will indicate that a non-blocking write can be performed 🌈 meanwhile read will be returned in case of the destination queue. periodt.


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./include/media/v4l2-mem2mem.h β€” and like, the whole extended friend group 😭:


okay that's the whole page, bestie β€” go forth and poll responsibly 🫢✨

this lil cutie lives in ./include/media, dated October 2026, and it's page v4l2_m2m_poll(9) of the Kernel API Manual β€” mwah, sending kisses, bye πŸ’‹πŸŽ€

πŸ“¦ where this page comes from