EPICS Base  7.0.6.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
freeList.h File Reference

Allocate and free fixed size memory elements. More...

#include <stddef.h>
#include "libComAPI.h"
Include dependency graph for freeList.h:

Go to the source code of this file.

Functions

LIBCOM_API void epicsStdCall freeListInitPvt (void **ppvt, int size, int malloc)
 
LIBCOM_API void *epicsStdCall freeListCalloc (void *pvt)
 
LIBCOM_API void *epicsStdCall freeListMalloc (void *pvt)
 
LIBCOM_API void epicsStdCall freeListFree (void *pvt, void *pmem)
 
LIBCOM_API void epicsStdCall freeListCleanup (void *pvt)
 
LIBCOM_API size_t epicsStdCall freeListItemsAvail (void *pvt)
 

Detailed Description

Author
Marty Kraimer

Describes routines to allocate and free fixed size memory elements. Free elements are maintained on a free list rather than being returned to the heap via calls to free. When it is necessary to call malloc(), memory is allocated in multiples of the element size.

Definition in file freeList.h.