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

NAME

6       kfifo_alloc - allocates a new FIFO and its internal buffer
7

SYNOPSIS

9       struct kfifo * kfifo_alloc(unsigned int size, gfp_t gfp_mask,
10                                  spinlock_t * lock);
11

ARGUMENTS

13       size
14           the size of the internal buffer to be allocated.
15
16       gfp_mask
17           get_free_pages mask, passed to kmalloc
18
19       lock
20           the lock to be used to protect the fifo buffer
21

DESCRIPTION

23       The size will be rounded-up to a power of 2.
24
26Kernel Hackers Manual 2.6.         June 2019                    KFIFO_ALLOC(9)
Impressum