dvb_ringbuffer_pkt_write(9)
β¨ dvb_ringbuffer_pkt_write(9) β¨
okay bestie, so this is a page from the Kernel API Manual and it's literally the glow-up guide for dvb_ringbuffer_pkt_write β the function that slides a whole packet into a ringbuffer. no cap, it's giving "put the thing in the thing" but make it kernel π
π NAME π
dvb_ringbuffer_pkt_write β Write a packet into the ringbuffer. that's it, that's the whole vibe π«Ά
πΈ SYNOPSIS πΈ
ssize_t dvb_ringbuffer_pkt_write (struct dvb_ringbuffer *rbuf , u8 *buf
, size_t len );
yes, bestie, that's the whole signature β three args, one ssize_t coming back at you β¨
π¦ ARGUMENTS π¦
rbufβ Ringbuffer to write to. like, this is the destination, the main character of the operation πbufβ Buffer to write. the actual payload, the source material, the content πlenβ Length of buffer (currently limited to 65535 bytes max). so yes, there's a ceiling and it's65535bytes. no notes, that's just the rules π
π₯ RETURN π₯
Returns the Number of bytes written, or one of these lil bad-boy error codes if things go sideways π:
-EFAULT-ENOMEM-EINVAL
π SEE ALSO π
like, the whole friend group, fr fr β go read these too:
- Kernel file
./include/media/dvb_ringbuffer.hstructdvb_ringbuffer(9) dvb_ringbuffer_init(9)dvb_ringbuffer_empty(9)dvb_ringbuffer_free(9)dvb_ringbuffer_avail(9)dvb_ringbuffer_reset(9)dvb_ringbuffer_flush(9)dvb_ringbuffer_flush_spinlock_wakeup(9)DVB_RINGBUFFER_PEEK(9)DVB_RINGBUFFER_SKIP(9)dvb_ringbuffer_read_user(9)dvb_ringbuffer_read(9)DVB_RINGBUFFER_WRITE_BYTE(9)dvb_ringbuffer_write(9)dvb_ringbuffer_write_user(9)dvb_ringbuffer_pkt_read_user(9)dvb_ringbuffer_pkt_read(9)dvb_ringbuffer_pkt_dispose(9)dvb_ringbuffer_pkt_next(9)
π reminder thatlentops out at65535bytes β that's a current limit, so don't come crying to me when your oversized packet doesn't slay.
okay that's the whole page, mwah π β this iconic lil doc lives in ./include/media, dated October 2026, and it's filed under dvb_ringbuffer_pkt_write(9) in the Kernel API Manual. periodt. π§ββοΈβ
π¦ 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