Contiki 2.5
Functions
mmem.c File Reference

    Implementation of the managed memory allocator
More...

#include "mmem.h"
#include "list.h"
#include "contiki-conf.h"
#include <string.h>
#include "profiling.h"

Go to the source code of this file.

Functions

int mmem_alloc (struct mmem *m, unsigned int size)
 Allocate a managed memory block. More...
 
void mmem_free (struct mmem *m)
 Deallocate a managed memory block. More...
 
int mmem_realloc (struct mmem *mem, unsigned int size)
 Change the size of allocated memory. More...
 
void mmem_reparent (struct mmem *m_old, struct mmem *m_new)
 Assign a chunk of memory form one mem struct to another. More...
 
void mmem_init (void)
 Initialize the managed memory module. More...
 

Detailed Description

    Implementation of the managed memory allocator
Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se

Definition in file mmem.c.