vb2_thread_start(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

NAME

Okay so bestie, welcome to vb2_thread_start(9) from the Kernel API Manual β€” this one is literally β€œstart a thread for the given queue.” Periodt. πŸ’…


SYNOPSIS

The whole signature, no cap:

int vb2_thread_start (struct vb2_queue *q , vb2_thread_fnc fnc , void
       *priv , const char *thread_name );

ARGUMENTS

  • q β€” pointer to struct vb2_queue with the videobuf2 queue. That’s the queue bestie. 🫢
  • fnc β€” the vb2_thread_fnc callback function. It’s giving β€œyou provide the function.”
  • priv β€” the priv pointer that gets passed to the callback function. Very β€œhere’s your stuff back.”
  • thread_name β€” the name of the thread. This will be prefixed with "vb2-". So yes, the thread is getting a little vb2- bow on top. πŸŽ€

DESCRIPTION

This starts a thread that will queue and dequeue until an error occurs or vb2_thread_stop is called. Like, it’s a whole loop vibe β€” queue, dequeue, repeat β€” until something goes wrong or you stop it. 😭

ATTENTION: This function should not be used for anything else but the videobuf2-dvb support. If you think you have another good use-case for this, then please contact the linux-media mailing list first.

No cap, that warning is serious: this is not the β€œuse it wherever, bestie” function. If you think you’ve got another good use-case, talk to the linux-media mailing list first. πŸ’€


SEE ALSO

Kernel file ./include/media/videobuf2-core.h, plus the whole iconic lineup:


mwah πŸ’‹ β€” source: ./include/media, dated October 2026, page: vb2_thread_start(9). That’s the whole manual, bestie β€” go slay. 🫢✨

πŸ“¦ where this page comes from