1KFIFO_OUT_PEEK(9)                 FIFO Buffer                KFIFO_OUT_PEEK(9)
2
3
4

NAME

6       kfifo_out_peek - gets some data from the fifo
7

SYNOPSIS

9       kfifo_out_peek(fifo, buf, n);
10

ARGUMENTS

12       fifo
13           address of the fifo to be used
14
15       buf
16           pointer to the storage buffer
17
18       n
19           max. number of elements to get
20

DESCRIPTION

22       This macro get the data from the fifo and return the numbers of
23       elements copied. The data is not removed from the fifo.
24
25       Note that with only one concurrent reader and one concurrent writer,
26       you don't need extra locking to use these macro.
27
29Kernel Hackers Manual 3.10         June 2019                 KFIFO_OUT_PEEK(9)
Impressum