DEFINE_KFIFO

Section: FIFO Buffer (9)
Updated: February 2011
Index Return to Main Contents
 

NAME

DEFINE_KFIFO - macro to define and initialize a fifo  

SYNOPSIS

DEFINE_KFIFO(fifo, type, size);
 

ARGUMENTS

fifo

name of the declared fifo datatype

type

type of the fifo elements

size

the number of elements in the fifo, this must be a power of 2
 

NOTE

the macro can be used for global and local fifo data type variables.  

COPYRIGHT