Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

sys/heap.h File Reference

Heap management definitions. More...


Data Structures

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


Defines

#define ALLOC_THRESHOLD
 Allocation threshold.


Typedefs

typedef _HEAPNODE HEAPNODE
 Heap memory node type.


Functions

void * NutHeapAlloc (u_short size)
 Allocate a block from heap memory.

void * NutHeapAllocClear (u_short size)
 Allocate an initialized block from heap memory.

int NutHeapFree (void *block)
 Return a block to heap memory.

void NutHeapAdd (void *addr, u_short size)
 Add a new memory region to the free heap.

u_short NutHeapAvailable (void)
 Return the number of bytes available.


Variables

HEAPNODE *volatile heapFreeList
 List of free nodes.


Detailed Description

Heap management definitions.


Define Documentation

#define ALLOC_THRESHOLD
 

Allocation threshold.

Might be increased to avoid creating too many small nodes.


Typedef Documentation

HEAPNODE
 

Heap memory node type.


Variable Documentation

HEAPNODE* volatile heapFreeList  
 

List of free nodes.


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