Contiki-NG
Loading...
Searching...
No Matches

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.
 

Functions

heapmem_zone_t heapmem_zone_register (const char *name, size_t zone_size)
 Register a zone with a reserved subdivision of the heap.
 
void * heapmem_zone_alloc (heapmem_zone_t zone, size_t size)
 Allocate a chunk of memory in the heap.
 
void * heapmem_realloc (void *ptr, size_t size)
 Reallocate a chunk of memory in the heap.
 
void * heapmem_calloc (size_t nmemb, size_t size)
 Allocate memory for a zero-initialized array.
 
bool heapmem_free (void *ptr)
 Deallocate a chunk of memory.
 
void heapmem_stats (heapmem_stats_t *stats)
 Obtain internal heapmem statistics regarding the allocated chunks.
 
void heapmem_print_debug_info (bool print_chunks)
 Print debugging information for the heap memory management.
 
size_t heapmem_alignment (void)
 Obtain the minimum alignment of allocated addresses.
 

Detailed Description

Header file for the dynamic heap memory allocator.

Author
Nicolas Tsiftes nvt@a.nosp@m.cm.o.nosp@m.rg

Definition in file heapmem.h.