ReactOS 0.4.16-dev-297-gc569aee
|
#include "lwip/opt.h"
#include "lwip/priv/memp_std.h"
#include "lwip/priv/memp_priv.h"
#include "lwip/stats.h"
Go to the source code of this file.
Macros | |
#define | LWIP_MEMPOOL(name, num, size, desc) |
#define | LWIP_MEMPOOL(name, num, size, desc) MEMP_##name, |
#define | LWIP_MEMPOOL_PROTOTYPE(name) extern const struct memp_desc memp_ ## name |
#define | LWIP_MEMPOOL_DECLARE(name, num, size, desc) |
#define | LWIP_MEMPOOL_INIT(name) memp_init_pool(&memp_ ## name) |
#define | LWIP_MEMPOOL_ALLOC(name) memp_malloc_pool(&memp_ ## name) |
#define | LWIP_MEMPOOL_FREE(name, x) memp_free_pool(&memp_ ## name, (x)) |
Enumerations | |
enum | memp_t { MEMP_MAX } |
Functions | |
void | memp_init (void) |
void * | memp_malloc (memp_t type) |
void | memp_free (memp_t type, void *mem) |
Variables | |
const struct memp_desc *const | memp_pools [MEMP_MAX] |
Memory pool API
Definition in file memp.h.
Create the list of all memory pools managed by memp. MEMP_MAX represents a NULL pool at the end
Enumerator | |
---|---|
MEMP_MAX |
Definition at line 52 of file memp.h.
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().
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().
Definition at line 81 of file memp.c.
Referenced by memp_free(), memp_init(), and memp_malloc().