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

NAME

6       DEFINE_KFIFO - macro to define and initialize a kfifo
7

SYNOPSIS

9       DEFINE_KFIFO(name, size);
10

ARGUMENTS

12       name
13           name of the declared kfifo datatype
14
15       size
16           size of the fifo buffer. Must be a power of two.
17

NOTE1

19       the macro can be used for global and local kfifo data type variables
20

NOTE2

22       the macro creates two objects: A kfifo object with the given name and a
23       buffer for the kfifo object named name##kfifo_buffer
24
26Kernel Hackers Manual 2.6.       November 2011                 DEFINE_KFIFO(9)
Impressum