kfifo_in

Langue: en

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

Section: 9 (Appels noyau Linux)

NAME

kfifo_in - puts some data into the FIFO

SYNOPSIS

unsigned int kfifo_in(struct kfifo * fifo, const void * from, unsigned int len);

ARGUMENTS

fifo

the fifo to be used.

from

the data to be added.

len

the length of the data to be added.

DESCRIPTION

This function copies at most len bytes from the from buffer into the FIFO depending on the free space, and returns the number of bytes copied.

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