kfifo_init

Langue: en

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

Section: 9 (Appels noyau Linux)

NAME

kfifo_init - initialize a FIFO using a preallocated buffer

SYNOPSIS

void kfifo_init(struct kfifo * fifo, void * buffer, unsigned int size);

ARGUMENTS

fifo

the fifo to assign the buffer

buffer

the preallocated buffer to be used.

size

the size of the internal buffer, this has to be a power of 2.