Name

DECLARE_KFIFO — macro to declare a kfifo and the associated buffer

Synopsis

fsfuncDECLARE_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 inside struct or union declaration

Note2

the macro creates two objects: A kfifo object with the given name and a buffer for the kfifo object named name##kfifo_buffer