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

NAME

6       kfifo_to_user - gets data from the FIFO and write it to user space
7

SYNOPSIS

9       int kfifo_to_user(struct kfifo * fifo, void __user * to,
10                         unsigned int len, unsigned * lenout);
11

ARGUMENTS

13       fifo
14           the fifo to be used.
15
16       to
17           where the data must be copied.
18
19       len
20           the size of the destination buffer.
21
22       lenout
23           pointer to output variable with copied data
24

DESCRIPTION

26       This function copies at most len bytes from the FIFO into the to buffer
27       and 0 or -EFAULT.
28
29       Note that with only one concurrent reader and one concurrent writer,
30       you don't need extra locking to use these functions.
31
33Kernel Hackers Manual 2.6.       November 2011                KFIFO_TO_USER(9)
Impressum