1KFIFO_IN_LOCKED(9) FIFO Buffer KFIFO_IN_LOCKED(9)
2
3
4
6 kfifo_in_locked - puts some data into the FIFO using a spinlock for
7 locking
8
10 unsigned int kfifo_in_locked(struct kfifo * fifo, const void * from,
11 unsigned int n, spinlock_t * lock);
12
14 fifo
15 the fifo to be used.
16
17 from
18 the data to be added.
19
20 n
21 the length of the data to be added.
22
23 lock
24 pointer to the spinlock to use for locking.
25
27 This function copies at most n bytes from the from buffer into the FIFO
28 depending on the free space, and returns the number of bytes copied.
29
31Kernel Hackers Manual 2.6. November 2011 KFIFO_IN_LOCKED(9)