Go to the source code of this file.
◆ LWIP_MEMPOOL
#define LWIP_MEMPOOL |
( |
|
name, |
|
|
|
num, |
|
|
|
size, |
|
|
|
desc |
|
) |
| MEMP_##name, |
◆ memp_t
◆ memp_free()
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 435 of file memp.c.
◆ memp_init()
Initialize this module.
Carves out memp_memory into linked lists for each pool-type.
Definition at line 338 of file memp.c.
◆ memp_malloc()
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 390 of file memp.c.