#include "lwip/opt.h"#include "lwip/memp_std.h"Defines | |
| #define | LWIP_MEMPOOL(name, num, size, desc) MEMP_##name, |
Enumerations | |
| enum | memp_t |
Functions | |
| void | memp_init (void) |
| Initialize this module. | |
| void * | memp_malloc (memp_t type) |
| Get an element from a specific pool. | |
| void | memp_free (memp_t type, void *mem) |
| Put an element back into its pool. | |
| #define LWIP_MEMPOOL | ( | name, | ||
| num, | ||||
| size, | ||||
| desc | ||||
| ) | MEMP_##name, |
| enum memp_t |
| void memp_free | ( | memp_t | type, | |
| void * | mem | |||
| ) |
Put an element back into its pool.
| type | the pool where to put mem | |
| mem | the memp element to free |
| 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.
| type | the pool to get an element from |
the debug version has two more parameters:
| file | file name calling this function | |
| line | number of line where this function is called |
1.7.1