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

NAME

6       kfifo_alloc - dynamically allocates a new fifo buffer
7

SYNOPSIS

9       kfifo_alloc(fifo, size, gfp_mask);
10

ARGUMENTS

12       fifo
13           pointer to the fifo
14
15       size
16           the number of elements in the fifo, this must be a power of 2
17
18       gfp_mask
19           get_free_pages mask, passed to kmalloc
20

DESCRIPTION

22       This macro dynamically allocates a new fifo buffer.
23
24       The numer of elements will be rounded-up to a power of 2. The fifo will
25       be release with kfifo_free. Return 0 if no error, otherwise an error
26       code.
27
29Kernel Hackers Manual 3.10         June 2019                    KFIFO_ALLOC(9)
Impressum