1KFIFO_IN_REC(9)                   FIFO Buffer                  KFIFO_IN_REC(9)
2
3
4

NAME

6       kfifo_in_rec - puts some record data into the FIFO
7

SYNOPSIS

9       __must_check unsigned int kfifo_in_rec(struct kfifo * fifo,
10                                              void * from, unsigned int n,
11                                              unsigned int recsize);
12

ARGUMENTS

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       recsize
24           size of record field
25

DESCRIPTION

27       This function copies n bytes from the from into the FIFO and returns
28       the number of bytes which cannot be copied. A returned value greater
29       than the n value means that the record doesn't fit into the buffer.
30
31       Note that with only one concurrent reader and one concurrent writer,
32       you don't need extra locking to use these functions.
33
35Kernel Hackers Manual 2.6.       November 2011                 KFIFO_IN_REC(9)
Impressum