nut/include/sys/heap.h File Reference


Detailed Description

Heap management definitions.

#include <cfg/memory.h>
#include <sys/types.h>

Data Structures

struct  _HEAPNODE
 Heap memory node information structure. More...

Defines

#define NutHeapAdd(a, s)   NutHeapRootAdd(&heapFreeList, a, s)
#define NutHeapAlloc(s)   NutHeapRootAlloc(&heapFreeList, s)
#define NutHeapAllocClear(s)   NutHeapRootAllocClear(&heapFreeList, s)
#define NutHeapAvailable()   NutHeapRootAvailable(&heapFreeList)
#define NutHeapFree(p)   NutHeapRootFree(&heapFreeList, p)
#define NutHeapRealloc(p, s)   NutHeapRootRealloc(&heapFreeList, p, s)
#define NutHeapRegionAvailable()   NutHeapRootRegionAvailable(&heapFreeList)
#define NutStackAlloc(s)   NutHeapAlloc(s)
#define NutStackFree(p)   NutHeapFree(p)

Typedefs

typedef _HEAPNODE HEAPNODE
 Heap memory node type.

Functions

int NutHeapCheck (void)
void NutHeapDump (void *stream)
__BEGIN_DECLS void NutHeapRootAdd (HEAPNODE **root, void *addr, size_t size)
void * NutHeapRootAlloc (HEAPNODE **root, size_t size)
void * NutHeapRootAllocClear (HEAPNODE **root, size_t size)
size_t NutHeapRootAvailable (HEAPNODE **root)
int NutHeapRootFree (HEAPNODE **root, void *block)
void * NutHeapRootRealloc (HEAPNODE **root, void *block, size_t size)
size_t NutHeapRootRegionAvailable (HEAPNODE **root)

Variables

HEAPNODEheapFreeList


Generated on Wed Apr 29 11:12:30 2009 for BTnut System Software by doxygen 1.5.1