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

NAME

6       kfifo_peek - get data from the fifo without removing
7

SYNOPSIS

9       kfifo_peek(fifo, val);
10

ARGUMENTS

12       fifo
13           address of the fifo to be used
14
15       val
16           the var where to store the data to be added
17

DESCRIPTION

19       This reads the data from the fifo without removing it from the fifo. It
20       returns 0 if the fifo was empty. Otherwise it returns the number
21       processed elements.
22
23       Note that with only one concurrent reader and one concurrent writer,
24       you don't need extra locking to use these macro.
25
27Kernel Hackers Manual 3.10         June 2019                     KFIFO_PEEK(9)
Impressum