1KFIFO_INIT(9)                     FIFO Buffer                    KFIFO_INIT(9)
2
3
4

NAME

6       kfifo_init - initialize a fifo using a preallocated buffer
7

SYNOPSIS

9       kfifo_init(fifo, buffer, size);
10

ARGUMENTS

12       fifo
13           the fifo to assign the buffer
14
15       buffer
16           the preallocated buffer to be used
17
18       size
19           the size of the internal buffer, this have to be a power of 2
20

DESCRIPTION

22       This macro initialize a fifo using a preallocated buffer.
23
24       The numer of elements will be rounded-up to a power of 2. Return 0 if
25       no error, otherwise an error code.
26
28Kernel Hackers Manual 3.10         June 2019                     KFIFO_INIT(9)
Impressum