heap.c File Reference

Go to the source code of this file.

Defines

#define MEMOVHD   (sizeof(size_t) + sizeof(0xDEADBEEF))
 Overhead for each allocated memory clock.

Functions

void * NutHeapAlloc (size_t size)
 Allocate a block from heap memory.
void * NutHeapAllocClear (size_t size)
 Allocate an initialized block from heap memory.
int NutHeapFree (void *block)
 Return a block to heap memory.
void NutHeapAdd (void *addr, size_t size)
 Add a new memory region to the free heap.
size_t NutHeapAvailable (void)
 Return the number of bytes available.

Variables

HEAPNODE *volatile heapFreeList
 List of free nodes.


© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/