kfifo_in_locked

Langue: en

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

Section: 9 (Appels noyau Linux)

NAME

kfifo_in_locked - puts some data into the FIFO using a spinlock for locking

SYNOPSIS

unsigned int kfifo_in_locked(struct kfifo * fifo, const void * from, unsigned int n, spinlock_t * lock);

ARGUMENTS

fifo

the fifo to be used.

from

the data to be added.

n

the length of the data to be added.

lock

pointer to the spinlock to use for locking.

DESCRIPTION

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