ENUM VB2_BUFFER_STATE(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

โœจ enum vb2_buffer_state(9) โœจ

okay so bestie, welcome to the enum vb2_buffer_state(9) page from the Kernel API Manual ๐Ÿซถ This enum is literally about the current video buffer state โ€” thatโ€™s the vibe, no cap ๐Ÿ’…


๐ŸŒธ NAME ๐ŸŒธ

enum vb2_buffer_state โ€” current video buffer state. iconic enum behavior ๐Ÿ’–


๐ŸŽ€ SYNOPSIS ๐ŸŽ€

okay so hereโ€™s the enum in all its main-character glory โœจ copy it exactly, bestie:

enum vb2_buffer_state {
    VB2_BUF_STATE_DEQUEUED ,
    VB2_BUF_STATE_IN_REQUEST ,
    VB2_BUF_STATE_PREPARING ,
    VB2_BUF_STATE_QUEUED ,
    VB2_BUF_STATE_ACTIVE ,
    VB2_BUF_STATE_DONE ,
    VB2_BUF_STATE_ERROR

};

๐Ÿ’… Constants ๐Ÿ’…

  • VB2_BUF_STATE_DEQUEUED โ€” buffer under userspace control. yes bestie, userspace has the aux ๐ŸŽฎ
  • VB2_BUF_STATE_IN_REQUEST โ€” buffer is queued in media request. itโ€™s in the request era ๐Ÿ’…
  • VB2_BUF_STATE_PREPARING โ€” buffer is being prepared in videobuf2. backstage getting-ready energy ๐ŸŽ€
  • VB2_BUF_STATE_QUEUED โ€” buffer queued in videobuf2, but not in driver. so close, yet so far ๐Ÿ˜ญ
  • VB2_BUF_STATE_ACTIVE โ€” buffer queued in driver and possibly used in a hardware operation. hardware might be using it, highkey active ๐Ÿ”ฅ
  • VB2_BUF_STATE_DONE โ€” buffer returned from driver to videobuf2, but not yet dequeued to userspace. it came back but hasnโ€™t been handed over yet ๐Ÿซถ
  • VB2_BUF_STATE_ERROR โ€” same as above, but the operation on the buffer has ended with an error, which will be reported to the userspace when it is dequeued. oop ๐Ÿ˜ญ error era, and userspace finds out on dequeue ๐Ÿ’€

๐Ÿ”Ž SEE ALSO ๐Ÿ”Ž

okay bestie, the whole videobuf2 friend group is here, and yes you need all of them ๐Ÿ’… Kernel file ./include/media/videobuf2-core.h is the spot:


okay bye bestie ๐Ÿ’– thatโ€™s the whole page โ€” source: ./include/media, date: October 2026, from the Kernel API Manual. stay hydrated and may your buffers never error ๐Ÿ˜ญ๐Ÿ’…

๐Ÿ“ฆ where this page comes from