vimc_streamer_s_stream(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– vimc_streamer_s_stream β€” the Kernel API Manual, bestie edition πŸ’–

okay so this page is vimc_streamer_s_stream(9), straight out of the Kernel API Manual, and it's literally the on/off switch for streaming on the media pipeline. one function, two jobs, zero drama. let's go ✨


🌸 NAME 🌸

vimc_streamer_s_stream β€” start/stop the streaming on the media pipeline. that's it, that's the whole vibe πŸŽ€


✨ SYNOPSIS ✨

int vimc_streamer_s_stream (struct vimc_stream *stream , struct
       vimc_ent_device *ved , int enable );

like, it returns an int, takes three things, and it is not subtle about any of them πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • stream β€” the pointer to the stream structure of the current stream. yes, the stream's stream struct, we love a self-referential moment πŸ‘‘
  • ved β€” pointer to the vimc entity of the entity of the stream. (the original says "of the entity of the entity", and honestly? iconic. we keep it fr fr 🫢)
  • enable β€” flag to determine if the stream should start/stop. it's giving toggle energy. main character boolean ⭐

🧚 DESCRIPTION 🧚

okay so when you're starting, first thing it does is check if there is no stream->kthread allocated. no cap, that check is there because a missing stream->kthread should indicate that a stream is already running. read it twice, it's fine, the manpage said it 😭

then it initializes the pipeline, and creates and runs a kthread to consume buffers through the pipeline. a whole little thread, working hard, consuming buffers, no thoughts head empty πŸ¦‹

when you're stopping, it does the analogous thing: check if there is a stream running, stop the thread, and terminate the pipeline. symmetric, clean, ate πŸ’…


πŸ”₯ RETURN πŸ”₯

  • 0 if success πŸŽ‰
  • error code otherwise πŸ’€

🌈 SEE ALSO 🌈

iykyk β€” go read those next, they're the rest of the friend group πŸ’œ


and that's the page!! this whole thing lives in ./drivers/media/test-drivers/vimc, dated October 2026, and it's literally titled vimc_streamer_s_stream(9). mwah, bye bestie πŸ˜˜πŸ’–βœ¨

πŸ“¦ where this page comes from