1KFIFO_ALLOC(9) FIFO Buffer KFIFO_ALLOC(9)
23
4
NAME
6kfifo_alloc - allocates a new FIFO and its internal buffer
7
SYNOPSIS
9struct kfifo * kfifo_alloc(unsigned int size, gfp_t gfp_mask,
10spinlock_t * lock);
11
ARGUMENTS
13size
14the size of the internal buffer to be allocated.
1516
gfp_mask
17get_free_pages mask, passed to kmalloc
1819
lock
20the lock to be used to protect the fifo buffer
21
DESCRIPTION
23The size will be rounded-up to a power of 2.
24
COPYRIGHT
26Kernel Hackers Manual 2.6. June 2019 KFIFO_ALLOC(9)