1KFIFO_IN(9) FIFO Buffer KFIFO_IN(9)
2
3
4
6 kfifo_in - put data into the fifo
7
9 kfifo_in(fifo, buf, n);
10
12 fifo
13 address of the fifo to be used
14
15 buf
16 the data to be added
17
18 n
19 number of elements to be added
20
22 This macro copies the given buffer into the fifo and returns the number
23 of copied elements.
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_IN(9)