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

NAME

6       kfifo_out_rec - gets some record data from the FIFO
7

SYNOPSIS

9       __must_check unsigned int kfifo_out_rec(struct kfifo * fifo, void * to,
10                                               unsigned int n,
11                                               unsigned int recsize,
12                                               unsigned int * total);
13

ARGUMENTS

15       fifo
16           the fifo to be used.
17
18       to
19           where the data must be copied.
20
21       n
22           the size of the destination buffer.
23
24       recsize
25           size of record field
26
27       total
28           pointer where the total number of to copied bytes should stored
29

DESCRIPTION

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