table of contents
other versions
- wheezy-backports 3.16.39-1+deb8u1~bpo70+1
- jessie 3.16.43-2
KFIFO_INIT(9) | FIFO Buffer | KFIFO_INIT(9) |
NAME¶
kfifo_init - initialize a fifo using a preallocated bufferSYNOPSIS¶
kfifo_init(fifo,
buffer, size);
ARGUMENTS¶
fifothe fifo to assign the buffer
buffer
the preallocated buffer to be used
size
the size of the internal buffer, this have to
be a power of 2
DESCRIPTION¶
This macro initialize a fifo using a preallocated buffer. The numer of elements will be rounded-up to a power of 2. Return 0 if no error, otherwise an error code.COPYRIGHT¶
February 2017 | Kernel Hackers Manual 3.16 |