__kfifo_put(9)

__kfifo_put9

Puts some data into the fifo, no locking version

Usage

unsigned int __kfifo_put(struct kfifo * fifo, const unsigned char * buffer, unsigned int len);

Arguments

fifo

the fifo to be used.

buffer

the data to be added.

len

the length of the data to be added.

Overview

This function copies at most len bytes from the 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.

Releases

3 releases since Debian 4.0 (Etch); the text changed 2 times.

  1. 4.0
  2. 5.0
  3. 6.0

From linux-manual-2.6.32 2.6.32-48squeeze6 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.