dvb_ringbuffer_pkt_read_user(9) Read from a packet in the ringbuffer.

SYNOPSIS

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

ARGUMENTS

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.

NOTE

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.

DESCRIPTION

returns Number of bytes read, or -EFAULT.

COPYRIGHT