Programmable Gateways
Login
Overview
Power Industry
Serial Device Server
Programmable Gateways
Serial/Ethernet Gateway XNUT-100
CAN/Ethernet Gateway XNUT-105
Ethernet CPU Boards
Shop
Information and Support
Main Page
|
Modules
|
Data Structures
|
File List
|
Data Fields
|
Globals
|
Related Pages
|
Examples
include/sys/heap.h File Reference
Detailed Description
Heap management definitions.
Defines
#define
ALLOC_THRESHOLD
Allocation threshold.
Typedefs
typedef
_HEAPNODE
HEAPNODE
Heap memory node type.
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.
Define Documentation
#define ALLOC_THRESHOLD
Allocation threshold.
Might be increased to avoid creating too many small nodes.