Name
kfifo_out_locked —
gets some data from the FIFO using a spinlock for locking
Synopsis
__must_check unsigned int fsfunckfifo_out_locked ( | struct kfifo * fifo, |
| void * to, |
| unsigned int n, |
| spinlock_t * lock) ; |
Arguments
fifo
the fifo to be used.
to
where the data must be copied.
n
the size of the destination buffer.
lock
pointer to the spinlock to use for locking.
Description
This function copies at most n
bytes from the FIFO into the
to
buffer and returns the number of copied bytes.