ConOpSys V2970
P004.07
ANVILEX control operating system
|
Go to the source code of this file.
Classes | |
struct | memp |
struct | memp_desc |
Macros | |
#define | MEMP_SIZE 0 |
#define | MEMP_ALIGN_SIZE(x) (LWIP_MEM_ALIGN_SIZE(x)) |
#define | DECLARE_LWIP_MEMPOOL_DESC(desc) |
#define | LWIP_MEMPOOL_DECLARE_STATS_INSTANCE(name) |
#define | LWIP_MEMPOOL_DECLARE_STATS_REFERENCE(name) |
Functions | |
void | memp_init_pool (const struct memp_desc *desc) |
void * | memp_malloc_pool (const struct memp_desc *desc) |
void | memp_free_pool (const struct memp_desc *desc, void *mem) |
memory pools lwIP internal implementations (do not use in application code)
#define DECLARE_LWIP_MEMPOOL_DESC | ( | desc | ) |
#define LWIP_MEMPOOL_DECLARE_STATS_INSTANCE | ( | name | ) |
#define LWIP_MEMPOOL_DECLARE_STATS_REFERENCE | ( | name | ) |
#define MEMP_ALIGN_SIZE | ( | x | ) | (LWIP_MEM_ALIGN_SIZE(x)) |
#define MEMP_SIZE 0 |
void memp_free_pool | ( | const struct memp_desc * | desc, |
void * | mem | ||
) |
Put a custom pool element back into its pool.
desc | the pool where to put mem |
mem | the memp element to free |
References do_memp_free_pool(), LWIP_ASSERT, and NULL.
void memp_init_pool | ( | const struct memp_desc * | desc | ) |
initialise custom memory pool. Related functions: memp_malloc_pool, memp_free_pool
desc | pool to initialise |
References memp_desc::base, LWIP_MEM_ALIGN, LWIP_UNUSED_ARG, MEMP_OVERFLOW_CHECK, MEMP_SIZE, memp::next, NULL, memp_desc::num, memp_desc::size, and memp_desc::tab.
Referenced by memp_init().
void* memp_malloc_pool | ( | const struct memp_desc * | desc | ) |
Get an element from a custom pool.
desc | the pool to get an element from |
References do_memp_malloc_pool(), LWIP_ASSERT, and NULL.