vb2_core_streamon(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– vb2_core_streamon β€” Kernel API Manual realness πŸ’–

okay so welcome to the Kernel API Manual bestie, today we're looking at vb2_core_streamon and honestly it's giving "small function, big job" energy ✨


✨ NAME ✨

vb2_core_streamon β€” the one that literally implements VB2 stream ON logic 🎬


πŸ¦‹ SYNOPSIS πŸ¦‹

int vb2_core_streamon (struct vb2_queue *q , unsigned int type );

she takes two things and she gives you back an int, no cap πŸ’…


🌸 ARGUMENTS 🌸

  • q β€” pointer to struct vb2_queue with the videobuf2 queue in it. this is the queue we're hyping up, she's the main character 🫢
  • type β€” the type of the queue to be started. for V4L2, this is defined by enum v4l2_buf_type type β€” like, that's literally where the type comes from, tyvm πŸ“Ž

πŸŽ€ DESCRIPTION πŸŽ€

so this is the Videobuf2 core helper that implements the VIDIOC_STREAMON operation 😀 it doesn't get called by you directly, bestie β€” VB2 calls it internally by an API-specific handler, like videobuf2-v4l2.h. so it's like, backstage crew energy: you don't see her, but the show literally does not go on without her πŸ”₯


πŸ’€ RETURN πŸ’€

returns zero on success; an error code otherwise. that's it, that's the vibe check ⭐


🌈 SEE ALSO 🌈

the reading list is LONG, grab a snack πŸ“


and that's the whole page, bestie, you ate that πŸ’… sign-off time: this lil gem lives in ./include/media and the version date is October 2026 β€” iconic, no notes πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from