kfifo_out_locked

Langue: en

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

Section: 9 (Appels noyau Linux)

NAME

kfifo_out_locked - gets some data from the FIFO using a spinlock for locking

SYNOPSIS

__must_check unsigned int kfifo_out_locked(struct kfifo * fifo, void * to, unsigned int n, spinlock_t * lock);

ARGUMENTS

fifo

the fifo to be used.

to

where the data must be copied.

n

the size of the destination buffer.

lock

pointer to the spinlock to use for locking.

DESCRIPTION

This function copies at most n bytes from the FIFO into the to buffer and returns the number of copied bytes.