dvb_ringbuff...nlock_wakeup(9)
π dvb_ringbuff...nlock_wakeup(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β yes that's the manual name, yes it's a mouthful, no we're not changing it. today's main character is a function with a name so long it got its own abbreviation in the header: dvb_ringbuff...nlock_wakeup(9). iconic honestly. π
πΈ NAME πΈ
dvb_ringbuffer_flush_spinlock_wakeup β flush a buffer that's protected by a spinlock, and wake up whatever task(s) are waiting on it π«Ά
like, two jobs. one function. she's booked and busy. π
β¨ SYNOPSIS β¨
void dvb_ringbuffer_flush_spinlock_wakeup (struct dvb_ringbuffer *rbuf
);
returns nothing (void), takes one pointer, does the thing. no cap. π₯
π¦ ARGUMENTS π¦
rbufβ pointer tostruct dvb_ringbufferπ that's it, that's the whole argument. she needs the ring buffer, she's gonna flush it, periodt.
π SEE ALSO π
bestie there is so much lore here, the whole friend group showed up π β and it's all in the kernel file ./include/media/dvb_ringbuffer.h:
struct dvb_ringbuffer(9)β the struct herself, the main character πdvb_ringbuffer_init(9)β the glow-up origin storydvb_ringbuffer_empty(9)β vibe check: is she empty?dvb_ringbuffer_free(9)β how much room she's gotdvb_ringbuffer_avail(9)β how much is actually in theredvb_ringbuffer_reset(9)β starting fresh, we love a resetdvb_ringbuffer_flush(9)β the flush, but the chill versionDVB_RINGBUFFER_PEEK(9)β look but don't touch πDVB_RINGBUFFER_SKIP(9)β moving on, literallydvb_ringbuffer_read_user(9)β reading, but to userspacedvb_ringbuffer_read(9)β reading, classic editionDVB_RINGBUFFER_WRITE_BYTE(9)β one single byte at a time, she's precisedvb_ringbuffer_write(9)β writing, the standard waydvb_ringbuffer_write_user(9)β writing, but from userspacedvb_ringbuffer_pkt_write(9)β packet-flavoured writing π¦dvb_ringbuffer_pkt_read_user(9)β packet reading, userspace styledvb_ringbuffer_pkt_read(9)β packet reading, plaindvb_ringbuffer_pkt_dispose(9)β packet said bye, dispose of itdvb_ringbuffer_pkt_next(9)β next packet bestie, keep it moving
β friendly reminder: this one's spinlock-protected, so mind your locking vibes β the whole point of the flush and the wakeup living in the same function is that they happen together, iykyk π§
and that's the whole page, diva. π source lives in ./include/media, dated October 2026 β mwah, xoxo, go flush responsibly ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms