KFIFO_IN_LOCKED(9) FIFO Buffer KFIFO_IN_LOCKED(9)
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 len bytes from the from buffer into the FIFO depending on the free space, and returns the number of bytes
copied.
COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 KFIFO_IN_LOCKED(9)