Name

kfifo_init — initialize a FIFO using a preallocated buffer

Synopsis

void fsfunckfifo_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.