1KFIFO_TO_USER(9) FIFO Buffer KFIFO_TO_USER(9)
2
3
4
6 kfifo_to_user - copies data from the fifo into user space
7
9 kfifo_to_user(fifo, to, len, copied);
10
12 fifo
13 address of the fifo to be used
14
15 to
16 where the data must be copied
17
18 len
19 the size of the destination buffer
20
21 copied
22 pointer to output variable to store the number of copied bytes
23
25 This macro copies at most len bytes from the fifo into the to buffer
26 and returns -EFAULT/0.
27
28 Note that with only one concurrent reader and one concurrent writer,
29 you don't need extra locking to use these macro.
30
32Kernel Hackers Manual 3.10 June 2019 KFIFO_TO_USER(9)