1KFIFO_GET(9) FIFO Buffer KFIFO_GET(9)
2
3
4
6 kfifo_get - get data from the fifo
7
9 kfifo_get(fifo, val);
10
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
19 This macro reads the data from the fifo. It returns 0 if the fifo was
20 empty. Otherwise it returns the number processed elements.
21
22 Note that with only one concurrent reader and one concurrent writer,
23 you don't need extra locking to use these macro.
24
26Kernel Hackers Manual 3.10 June 2019 KFIFO_GET(9)