v4l2_m2m_streamon(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… v4l2_m2m_streamon(9) โ€” like, the Kernel API Manual, bestie โœจ

Okay so first thing first: this page lives in the Kernel API Manual and it's literally called v4l2_m2m_streamon(9). Same name up top, same name at the bottom, iconic symmetry, we love a consistent brand ๐ŸŽ€


๐ŸŒธ NAME ๐ŸŒธ

v4l2_m2m_streamon โ€” turn on streaming for a video queue. That's it. That's the whole gig. Lights, camera, stream. ๐Ÿ”ฅ


โœจ SYNOPSIS โœจ

int v4l2_m2m_streamon (struct file *file , struct v4l2_m2m_ctx *m2m_ctx
, enum v4l2_buf_type type );

Notice it returns an int, so likeโ€ฆ check it, okay? ๐Ÿ‘€


๐Ÿฆ‹ ARGUMENTS ๐Ÿฆ‹

Three args, no notes, let's get into it:

  • file โ€” pointer to struct file. Yes it's a pointer, no you don't get to be normal about it.
  • m2m_ctx โ€” the m2m context assigned to the instance, given by struct v4l2_m2m_ctx. It's the whole little world your instance lives in ๐Ÿซถ
  • type โ€” the type of the V4L2 buffer, as defined by enum v4l2_buf_type. Which queue are we waking up? You're telling it. Main character decision, honestly. ๐Ÿ‘‘

๐Ÿ’œ SEE ALSO ๐Ÿ’œ

Bestie, this list is LONG and I'm obsessed, it's giving "my mutuals" energy. All of these are (9) kernel API pages, plus one very important header file:

Kernel file ๐Ÿ‘‡

  • ./include/media/v4l2-mem2mem.h

And the structs, the OGs ๐Ÿ›๏ธ:

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

The scheduler / job-finish girlies โš™๏ธ:

State machine besties (they track the vibes) ๐Ÿ”„:

The buffer bargain-bin run (all your ioctl-ish faves) ๐Ÿ“ผ:

The โœจ counterpart โœจ (you know exactly who):

Streaming-state updaters, they keep the lore accurate ๐Ÿ“–:

Codec command crew ๐ŸŽฌ:

The I/O girlies (poll + mmap, the classic duo) ๐ŸŒ€:

Lifecycle, literally birth to rebirth ๐ŸŒฑ:

Queueing + counting ๐Ÿงฎ:

Peeking at buffers, no cap ๐Ÿ‘€:

Loop-de-loop macros, the safe ones included ๐ŸŽ :

Grab the queue directly ๐Ÿซณ:

Removal squad (removing stuff is also a love language) ๐Ÿ—‘๏ธ:

And the metadata copy-er, we stan a thorough queen ๐Ÿ’ซ:


Fr fr: that's the entire SEE ALSO list, unedited, nobody got left out of the group chat. ๐Ÿ’–

Okay bye ily, this page was brought to you by the directory ./include/media, dated October 2026, and it's v4l2_m2m_streamon(9) all the way down. Slay, stream responsibly, and go read v4l2_m2m_streamoff(9) when you're done. ๐ŸŒˆ๐Ÿ‘‘๐Ÿ’…

๐Ÿ“ฆ where this page comes from