memp.c File Reference


Functions

void memp_init (void)
void * memp_malloc (memp_t type) memp_malloc_fn(memp_t type

Detailed Description

Dynamic pool memory manager

lwIP has dedicated pools for many structures (netconn, protocol control blocks, packet buffers, ...). All these pools are managed here.


Function Documentation

void memp_init ( void   ) 

Initialize this module.

Carves out memp_memory into linked lists for each pool-type.

void* memp_malloc ( memp_t  type  ) 

Get an element from a specific pool.

Parameters:
type the pool to get an element from
the debug version has two more parameters:
Parameters:
file file name calling this function
line number of line where this function is called
Returns:
a pointer to the allocated memory or a NULL pointer on error


Generated on Sun Mar 23 19:22:46 2008 for lwIP 1.3.0 by  doxygen 1.5.4