KFIFO_OUT_PEEK(9) FIFO Buffer KFIFO_OUT_PEEK(9)
NAME
kfifo_out_peek - copy some data from the FIFO, but do not remove it
SYNOPSIS
unsigned int kfifo_out_peek(struct kfifo * fifo, void * to, unsigned int len, unsigned offset);
ARGUMENTS
fifo
the fifo to be used.
to
where the data must be copied.
len
the size of the destination buffer.
offset
offset into the fifo
DESCRIPTION
This function copies at most len bytes at offset from the FIFO into the to buffer and returns the number of copied bytes. The data is not
removed from the FIFO.
COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 KFIFO_OUT_PEEK(9)