dvb_ringbuffer_pkt_read(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

dvb_ringbuffer_pkt_read(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” today's main character is dvb_ringbuffer_pkt_read, and she is literally here to read from a packet in the ringbuffer. no cap. πŸ¦‹

NAME ✨

dvb_ringbuffer_pkt_read β€” Read from a packet in the ringbuffer.

SYNOPSIS πŸŽ€

ssize_t dvb_ringbuffer_pkt_read (struct dvb_ringbuffer *rbuf , size_t idx , int offset , u8 *buf , size_t len );

ARGUMENTS 🌸

  • rbuf β€” the ringbuffer concerned. πŸ’–
  • idx β€” packet index as returned by dvb_ringbuffer_pkt_next.
  • offset β€” offset into the packet to read from.
  • buf β€” destination buffer for the data.
  • len β€” size of the destination buffer.

NOTE πŸ’€

okay important, bestie: unlike dvb_ringbuffer_read_user, this DOES update the read pointer in the ringbuffer. it's giving β€œyes, actually updates it” energy. periodt.

RETURN πŸ”₯

Number of bytes read, or -EFAULT.

SEE ALSO 🌈

Kernel file ./include/media/dvb_ringbuffer.h struct dvb_ringbuffer(9), plus the whole squad:


xoxo, your girl from ./include/media, dated October 2026 πŸ’–βœ¨

πŸ“¦ where this page comes from