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 int kfifo_from_user(struct kfifo * fifo, const void __user * from,
10 unsigned int len, unsigned * total);
11
13 fifo
14 the fifo to be used.
15
16 from
17 pointer to the data to be added.
18
19 len
20 the length of the data to be added.
21
22 total
23 the actual returned data length.
24
26 This function copies at most len bytes from the from into the FIFO
27 depending and returns -EFAULT/0.
28
29 Note that with only one concurrent reader and one concurrent writer,
30 you don't need extra locking to use these functions.
31
33Kernel Hackers Manual 2.6. November 2011 KFIFO_FROM_USER(9)