kfifo_to_user

Langue: en

Version: October 2010 (fedora - 01/12/10)

Section: 9 (Appels noyau Linux)

NAME

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

SYNOPSIS

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

ARGUMENTS

fifo

the fifo to be used.

to

where the data must be copied.

len

the size of the destination buffer.

lenout

pointer to output variable with copied data

DESCRIPTION

This function copies at most len bytes from the FIFO into the to buffer and 0 or -EFAULT.

Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these functions.