Name
DEFINE_KFIFO —
macro to define and initialize a kfifo
Synopsis
DEFINE_KFIFO ( | name, |
| size) ; |
Arguments
name
name of the declared kfifo datatype
size
size of the fifo buffer. Must be a power of two.
Note1
the macro can be used for global and local kfifo data type variables
Note2
the macro creates two objects:
A kfifo object with the given name and a buffer for the kfifo
object named name##kfifo_buffer