|
UbixOS
2.0
|


Go to the source code of this file.
Data Structures | |
| struct | memp |
| struct | memp_desc |
Macros | |
| #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 |
Functions | |
| void | memp_free_pool (const struct memp_desc *desc, void *mem) |
| void | memp_init_pool (const struct memp_desc *desc) |
| void * | memp_malloc_pool (const struct memp_desc *desc) |
memory pools lwIP internal implementations (do not use in application code)
Definition in file memp_priv.h.
| #define DECLARE_LWIP_MEMPOOL_DESC | ( | desc | ) |
Definition at line 158 of file memp_priv.h.
| #define LWIP_MEMPOOL_DECLARE_STATS_INSTANCE | ( | name | ) |
Definition at line 165 of file memp_priv.h.
| #define LWIP_MEMPOOL_DECLARE_STATS_REFERENCE | ( | name | ) |
Definition at line 166 of file memp_priv.h.
| #define MEMP_ALIGN_SIZE | ( | x | ) | (LWIP_MEM_ALIGN_SIZE(x)) |
Definition at line 86 of file memp_priv.h.
| #define MEMP_SIZE 0 |
Definition at line 85 of file memp_priv.h.
Put a custom pool element back into its pool.
| desc | the pool where to put mem |
| mem | the memp element to free |
Definition at line 452 of file memp.c.
References LWIP_ASSERT, and NULL.
Initialize custom memory pool. Related functions: memp_malloc_pool, memp_free_pool
| desc | pool to initialize |
Definition at line 230 of file memp.c.
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().