KFIFO_IN(9) FIFO Buffer KFIFO_IN(9)
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.
COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 KFIFO_IN(9)