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

memb.h File Reference


Detailed Description

Memory block allocation routines.

Author:
Adam Dunkels <adam@sics.se>

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define MEMB(name, size, num)
 Declare a memory block.


Functions

void memb_init (struct memb_blocks *m)
 Initialize a memory block that was declared with MEMB().

char * memb_alloc (struct memb_blocks *m)
 Allocate a memory block from a block of memory declared with MEMB().

char memb_ref (struct memb_blocks *m, char *ptr)
 Increase the reference count for a memory chunk.

char memb_free (struct memb_blocks *m, void *ptr)
 Deallocate a memory block from a memory block previously declared with MEMB().


Generated on Wed Jul 6 01:19:02 2005 for Contiki/ESB by doxygen 1.3.6