ReactOS 0.4.16-dev-311-g9382aa2
|
#include "lwip/opt.h"
#include "lwip/memp.h"
#include "lwip/sys.h"
#include "lwip/stats.h"
#include <string.h>
#include "lwip/pbuf.h"
#include "lwip/raw.h"
#include "lwip/udp.h"
#include "lwip/tcp.h"
#include "lwip/priv/tcp_priv.h"
#include "lwip/altcp.h"
#include "lwip/ip4_frag.h"
#include "lwip/netbuf.h"
#include "lwip/api.h"
#include "lwip/priv/tcpip_priv.h"
#include "lwip/priv/api_msg.h"
#include "lwip/priv/sockets_priv.h"
#include "lwip/etharp.h"
#include "lwip/igmp.h"
#include "lwip/timeouts.h"
#include "netif/ppp/ppp_opts.h"
#include "lwip/netdb.h"
#include "lwip/dns.h"
#include "lwip/priv/nd6_priv.h"
#include "lwip/ip6_frag.h"
#include "lwip/mld6.h"
#include "lwip/priv/memp_std.h"
Go to the source code of this file.
Macros | |
#define | LWIP_MEMPOOL(name, num, size, desc) LWIP_MEMPOOL_DECLARE(name,num,size,desc) |
#define | LWIP_MEMPOOL(name, num, size, desc) &memp_ ## name, |
Functions | |
void | memp_init_pool (const struct memp_desc *desc) |
void | memp_init (void) |
static void * | do_memp_malloc_pool (const struct memp_desc *desc) |
void * | memp_malloc_pool (const struct memp_desc *desc) |
void * | memp_malloc (memp_t type) |
static void | do_memp_free_pool (const struct memp_desc *desc, void *mem) |
void | memp_free_pool (const struct memp_desc *desc, void *mem) |
void | memp_free (memp_t type, void *mem) |
Variables | |
const struct memp_desc *const | memp_pools [MEMP_MAX] |
Dynamic pool memory manager
lwIP has dedicated pools for many structures (netconn, protocol control blocks, packet buffers, ...). All these pools are managed here.
Definition in file memp.c.
Definition at line 359 of file memp.c.
Referenced by memp_free(), and memp_free_pool().
Definition at line 245 of file memp.c.
Referenced by memp_malloc(), and memp_malloc_pool().
Put an element back into its pool.
type | the pool where to put mem |
mem | the memp element to free |
Definition at line 420 of file memp.c.
Referenced by pbuf_free(), tcpip_callbackmsg_delete(), tcpip_inpkt(), tcpip_thread_handle_msg(), and tcpip_try_callback().
Initializes lwIP built-in pools. Related functions: memp_malloc, memp_free
Carves out memp_memory into linked lists for each pool-type.
Definition at line 224 of file memp.c.
Referenced by lwip_init().
Initialize custom memory pool. Related functions: memp_malloc_pool, memp_free_pool
desc | pool to initialize |
Definition at line 175 of file memp.c.
Referenced by memp_init().
Get an element from a specific pool.
type | the pool to get an element from |
Definition at line 337 of file memp.c.
Referenced by pbuf_alloc(), pbuf_alloc_reference(), tcpip_callback(), tcpip_callbackmsg_new(), tcpip_inpkt(), and tcpip_try_callback().
Get an element from a custom pool.
desc | the pool to get an element from |
Definition at line 81 of file memp.c.
Referenced by memp_free(), memp_init(), and memp_malloc().