Name
kfifo_in —
puts some data into the FIFO
Synopsis
unsigned int kfifo_in ( | struct kfifo * fifo, |
| const void * from, |
| unsigned int len) ; |
Arguments
fifo
the fifo to be used.
from
the data to be added.
len
the length of the data to be added.
Description
This function copies at most len
bytes from the from
buffer into
the FIFO depending on the free space, and returns the number of
bytes copied.
Note that with only one concurrent reader and one concurrent
writer, you don't need extra locking to use these functions.