Name
kfifo_in_locked —
puts some data into the FIFO using a spinlock for locking
Synopsis
unsigned int kfifo_in_locked ( | struct kfifo * fifo, |
| | const void * from, |
| | unsigned int n, |
| | spinlock_t * lock); |
Arguments
fifo
the fifo to be used.
from
the data to be added.
n
the length of the data to be added.
lock
pointer to the spinlock to use for locking.
Description
This function copies at most n bytes from the from buffer into
the FIFO depending on the free space, and returns the number of
bytes copied.