dvb_ringbuffer_pkt_read_user — Read from a packet in the ringbuffer.
ssize_t dvb_ringbuffer_pkt_read_user ( | struct dvb_ringbuffer * rbuf, |
size_t idx, | |
int offset, | |
u8 __user * buf, | |
size_t len) ; |
rbuf
Ringbuffer concerned.
idx
Packet index as returned by dvb_ringbuffer_pkt_next
.
offset
Offset into packet to read from.
buf
Destination buffer for data.
len
Size of destination buffer.
unlike dvb_ringbuffer_read
, this does NOT update the read pointer
in the ringbuffer. You must use dvb_ringbuffer_pkt_dispose
to mark a
packet as no longer required.