#include "lwip/opt.h"
#include "lwip/memp_std.h"
Macros | |
#define | LWIP_MEMPOOL(name, num, size, desc) MEMP_##name, |
Enumerations | |
enum | memp_t { MEMP_MAX, MEMP_MAX } |
Functions | |
void | memp_free (memp_t type, void *mem) |
Put an element back into its pool. More... | |
void | memp_init (void) |
Initialize this module. More... | |
void * | memp_malloc (memp_t type) |
#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 | ) |
Referenced by pbuf_alloc(), tcpip_callback_with_block(), tcpip_callbackmsg_new(), and tcpip_input().