Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Examples

mmem.c File Reference


Detailed Description

Implementation of the managed memory allocator.

Author:
Adam Dunkels <adam@sics.se>

Definition in file mmem.c.

#include "mmem.h"
#include "list.h"
#include <string.h>

Go to the source code of this file.

Defines

#define MMEM_SIZE   4096

Functions

int mmem_alloc (struct mmem *m, unsigned int size)
 Allocate a managed memory block.
void mmem_free (struct mmem *m)
 Deallocate a managed memory block.
void mmem_init (void)
 Initialize the managed memory module.

Variables

unsigned int avail_memory


Generated on Thu Jun 22 17:45:43 2006 for Contiki 2.x by  doxygen 1.4.4