Main Page   Modules   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. More...


Typedefs

typedef struct _HEAPNODE  HEAPNODE
 Heap memory node type.


Functions

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

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

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

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

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


Variables

HEAPNODE* volatile heapFreeList
 List of free nodes.

u_short available
 Number of bytes available.


Detailed Description

Heap management definitions.


Define Documentation

#define ALLOC_THRESHOLD
 

Allocation threshold.

Might be increased to avoid creating too many small nodes.


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