1KFIFO_FROM_USER(9) FIFO Buffer KFIFO_FROM_USER(9)
2
3
4
6 kfifo_from_user - puts some data from user space into the fifo
7
9 kfifo_from_user(fifo, from, len, copied);
10
12 fifo
13 address of the fifo to be used
14
15 from
16 pointer to the data to be added
17
18 len
19 the length of the data to be added
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 from into the fifo,
26 depending of the available space 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_FROM_USER(9)