Macros | |
#define | LWIP_MEMPOOL(name, num, size, desc) MEMP_##name, |
Enumerations | |
enum | memp_t { 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) |
enum memp_t |
Put an element back into its pool.
type | the pool where to put mem |
mem | the memp element to free |
References LWIP_ASSERT, MEM_ALIGNMENT, memp, MEMP_SIZE, MEMP_STATS_DEC, memp::next, NULL, SYS_ARCH_DECL_PROTECT(), SYS_ARCH_PROTECT(), and SYS_ARCH_UNPROTECT().
Referenced by ip_frag_free_pbuf_custom_ref(), netbuf_chain(), netbuf_delete(), netconn_alloc(), netconn_free(), netconn_new_with_proto_and_callback(), netconn_recv(), pbuf_free(), tcp_abandon(), tcp_close_shutdown(), tcp_input(), tcp_listen_with_backlog(), tcp_seg_free(), tcp_slowtmr(), tcpip_callback_with_block(), tcpip_input(), tcpip_thread(), and update_arp_entry().
Initialize this module.
Carves out memp_memory into linked lists for each pool-type.
References LWIP_MEM_ALIGN, max, memp, MEMP_MAX, memp_memory, MEMP_OVERFLOW_CHECK, MEMP_SIZE, memp_sizes, MEMP_STATS_AVAIL, memp::next, and NULL.
Referenced by lwip_init().