vb2_queue_error(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

vb2_queue_error(9) β€” signal a fatal error on the queue. This lil page lives in the Kernel API Manual, bestie, and it’s giving β€œemergency siren but make it kernel” 🚨✨


🌸 SYNOPSIS 🌸

void vb2_queue_error (struct vb2_queue *q );

πŸŽ€ ARGUMENTS πŸŽ€

  • q β€” pointer to struct vb2_queue with videobuf2 queue. That’s the queue bestie we’re about to flag 🫢

✨ DESCRIPTION ✨

Okay so this function is literally the β€œsomething went very wrong” button πŸ’€. It flags that a fatal unrecoverable error has occurred and wakes up all processes waiting on the queue.

After that, polling will now set EPOLLERR, and queuing and dequeuing buffers will return -EIO. Not a cute vibe, but very important information πŸ”₯.

The error flag will be cleared when canceling the queue β€” either from vb2_streamoff or vb2_queue_release. Periodt, that’s the cleanup path πŸ’….

Drivers should thus not call this function before starting the stream, otherwise the error flag will remain set until the queue is released when closing the device node. Ma’am, please do not do that πŸ™ˆ.

πŸ‘€ SEE ALSO πŸ‘€

Kernel file ./include/media/videobuf2-core.h is the source of this whole friend group 🌈:


That’s the whole page, bestie πŸ«ΆπŸ’–. Source/version: ./include/media Β· date: October 2026 Β· page: vb2_queue_error(9). Go forth and signal fatal errors responsibly ✨🌸

πŸ“¦ where this page comes from