kfifo_from_user - puts some data from user space into the fifo
2. SYNOPSIS ▲
kfifo_from_user( fifo , from , len , copied );
3. ARGUMENTS ▲
address of the fifo to be used
pointer to the data to be added
the length of the data to be added
pointer to output variable to store the number of copied bytes
4. DESCRIPTION ▲
This macro copies at most len bytes from the from into the fifo, depending of the available space and returns -EFAULT/0.
Note that with only one concurrent reader and one concurrent writer, you donAqt need extra locking to use these macro.
5. COPYRIGHT ▲