STRUCT DVB_RINGBUFFER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct dvb_ringbuffer(9) β€” bestie's guide to the DVB ring buffer ✨

okay so this is from the Kernel API Manual, and it's literally the struct that describes a ring buffer used at the DVB framework. like, the whole vibe of the thing. she's a struct, she holds pointers, she's iconic πŸŽ€


✨ NAME ✨

struct dvb_ringbuffer β€” describes a ring buffer used at DVB framework πŸŒ€


πŸ¦‹ SYNOPSIS πŸ¦‹

struct dvb_ringbuffer {
    u8 *data;
    ssize_t size;
    ssize_t pread;
    ssize_t pwrite;
    int error;
    wait_queue_head_t queue;
    spinlock_t lock;
 };

no cap, that's the whole shape of her πŸ‘‘


🌸 Members 🌸

let's do a vibe check on every single field, one by one, because they ALL matter 🫢

  • data β€” area were the ringbuffer data is written πŸ’Ύ (yes, "were" β€” that's how the original spells it, we don't edit the queen's spelling, periodt)
  • size β€” size of the ringbuffer πŸ“
  • pread β€” next position to read πŸ‘€
  • pwrite β€” next position to write ✍️
  • error β€” used by ringbuffer clients to indicate that an error happened 😭 like when things go wrong and the client needs to say so
  • queue β€” wait queue used by ringbuffer clients to indicate when buffer was filled 🚦 (she's the one who tells everyone "hey, it's full now")
  • lock β€” spinlock used to protect the ringbuffer πŸ”’ do NOT skip the lock, bestie, she's the bodyguard

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./include/media/dvb_ringbuffer.h β€” and honestly, the whole friend group shows up here, so let's give them all their moment πŸ’…:

that's the entire squad, no gatekeeping 🧚


ngl the literal cutest part: this page lives in ./include/media and it's dated October 2026, and it's filed under struct dvb_ringbuffer(9) 🌈 so yeah, that's the sign-off bestie β€” ./include/media, October 2026, struct dvb_ringbuffer(9). slay πŸ’–β­
πŸ“¦ where this page comes from