1KFIFO_OUT_PEEK(9) FIFO Buffer KFIFO_OUT_PEEK(9)
2
3
4
6 kfifo_out_peek - copy some data from the FIFO, but do not remove it
7
9 unsigned int kfifo_out_peek(struct kfifo * fifo, void * to,
10 unsigned int len, unsigned offset);
11
13 fifo
14 the fifo to be used.
15
16 to
17 where the data must be copied.
18
19 len
20 the size of the destination buffer.
21
22 offset
23 offset into the fifo
24
26 This function copies at most len bytes at offset from the FIFO into the
27 to buffer and returns the number of copied bytes. The data is not
28 removed from the FIFO.
29
31Kernel Hackers Manual 2.6. November 2011 KFIFO_OUT_PEEK(9)