KFIFO_OUT(9) FIFO Buffer KFIFO_OUT(9)
NAME
kfifo_out - gets some data from the FIFO
SYNOPSIS
unsigned int kfifo_out(struct kfifo * fifo, void * to, unsigned int len);
ARGUMENTS
fifo
the fifo to be used.
to
where the data must be copied.
len
the size of the destination buffer.
DESCRIPTION
This function copies at most len bytes from the FIFO into the to buffer and returns the number of copied bytes.
Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these functions.
COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 KFIFO_OUT(9)