KFIFO_OUT_LOCKED(9) FIFO Buffer KFIFO_OUT_LOCKED(9)
NAME
kfifo_out_locked - gets some data from the FIFO using a spinlock for locking
SYNOPSIS
__must_check unsigned int kfifo_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 len bytes from the FIFO into the to buffer and returns the number of copied bytes.
COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 KFIFO_OUT_LOCKED(9)