1KFIFO_INIT(9) FIFO Buffer KFIFO_INIT(9)
23
4
NAME
6kfifo_init - initialize a FIFO using a preallocated buffer
7
SYNOPSIS
9void kfifo_init(struct kfifo * fifo, void * buffer, unsigned int size);
10
ARGUMENTS
12fifo
13the fifo to assign the buffer
1415
buffer
16the preallocated buffer to be used.
1718
size
19the size of the internal buffer, this has to be a power of 2.
20
COPYRIGHT
22Kernel Hackers Manual 2.6. November 2011 KFIFO_INIT(9)