Go to the source code of this file.
#define LWIP_MEMPOOL |
( |
|
name, |
|
|
|
num, |
|
|
|
size, |
|
|
|
desc |
|
) |
| MEMP_##name, |
void memp_free |
( |
memp_t |
type, |
|
|
void * |
mem |
|
) |
| |
Put an element back into its pool.
- Parameters
-
type | the pool where to put mem |
mem | the memp element to free |
Definition at line 434 of file memp.c.
Initialize this module.
Carves out memp_memory into linked lists for each pool-type.
Definition at line 337 of file memp.c.
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
Definition at line 389 of file memp.c.