Contiki-NG
Loading...
Searching...
No Matches
heapmem.c File Reference

HeapMem: a dynamic memory allocation module for resource-constrained devices. More...

#include <inttypes.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include "contiki.h"
#include "lib/heapmem.h"
#include "sys/cc.h"
#include "sys/log.h"

Go to the source code of this file.

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

HeapMem: a dynamic memory allocation module for resource-constrained devices.

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

Definition in file heapmem.c.