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

Header file for the dynamic heap memory allocator. More...

#include "contiki.h"
#include "sys/cc.h"
#include <stdlib.h>

Go to the source code of this file.

Macros

#define HEAPMEM_ZONE_DEFINE(varname, bufsize)
 Define a zone with its own static memory buffer.
 

Functions

void * heapmem_zone_alloc (heapmem_zone_t *zone, size_t size)
 Allocate a chunk of memory in the specified zone.
 
bool heapmem_zone_free (heapmem_zone_t *zone, void *ptr)
 Deallocate a chunk of memory in the specified zone.
 
void * heapmem_zone_realloc (heapmem_zone_t *zone, void *ptr, size_t size)
 Reallocate a chunk of memory in the specified zone.
 
void * heapmem_zone_calloc (heapmem_zone_t *zone, size_t nmemb, size_t size)
 Allocate memory for a zero-initialized array in the specified zone.
 
void heapmem_zone_stats (heapmem_zone_t *zone, heapmem_stats_t *stats)
 Obtain internal statistics for a heapmem zone.
 
void heapmem_zone_print_debug_info (heapmem_zone_t *zone, bool print_chunks)
 Print debugging information for a heapmem zone.
 

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.