Contiki-NG
|
Header file for the dynamic heap memory allocator. More...
#include "contiki.h"
#include <stdlib.h>
Go to the source code of this file.
Macros | |
#define | heapmem_alloc(size) heapmem_zone_alloc(HEAPMEM_ZONE_GENERAL, (size)) |
Allocate a chunk of memory in the general zone of the heap. More... | |
Functions | |
heapmem_zone_t | heapmem_zone_register (const char *name, size_t zone_size) |
Register a zone with a reserved subdivision of the heap. More... | |
void * | heapmem_zone_alloc (heapmem_zone_t zone, size_t size) |
Allocate a chunk of memory in the heap. More... | |
void * | heapmem_realloc (void *ptr, size_t size) |
Reallocate a chunk of memory in the heap. More... | |
bool | heapmem_free (void *ptr) |
Deallocate a chunk of memory. More... | |
void | heapmem_stats (heapmem_stats_t *stats) |
Obtain internal heapmem statistics regarding the allocated chunks. More... | |
size_t | heapmem_alignment (void) |
Obtain the minimum alignment of allocated addresses. More... | |
Header file for the dynamic heap memory allocator.
Definition in file heapmem.h.