MEMP_MEM_MALLOC is only used within LwIP.
 
Symbols
loading...
Files
loading...

MEMP_MEM_MALLOC macro

MEMP_MEM_MALLOC==1: Use mem_malloc/mem_free instead of the lwip pool allocator. Especially useful with MEM_LIBC_MALLOC but handle with care regarding execution speed (heap alloc can be much slower than pool alloc) and usage from interrupts (especially if your netif driver allocates PBUF_POOL pbufs for received frames from interrupt)! ATTENTION: Currently, this uses the heap for ALL pools (also for private pools, not only for internal pools defined in memp_std.h)!

Syntax

#define MEMP_MEM_MALLOC 0

References

LocationText
opt.h:271
#define MEMP_MEM_MALLOC 0
init.c:103
#if !MEMP_MEM_MALLOC /* MEMP_NUM_* checks are disabled when not using the pool allocator */
init.c:273
#if MEMP_MEM_MALLOC
init.c:296
#if !MEMP_MEM_MALLOC && (MEMP_NUM_TCP_SEG < TCP_SND_QUEUELEN)
init.c:314
#if !MEMP_MEM_MALLOC && PBUF_POOL_SIZE && (PBUF_POOL_BUFSIZE <= (PBUF_LINK_ENCAPSULATION_HLEN + PBUF_LINK_HLEN + PBUF_IP_HLEN + PBUF_TRANSPORT_HLEN))
init.c:317
#if !MEMP_MEM_MALLOC && PBUF_POOL_SIZE && (TCP_WND > (PBUF_POOL_SIZE * (PBUF_POOL_BUFSIZE - (PBUF_LINK_ENCAPSULATION_HLEN + PBUF_LINK_HLEN + PBUF_IP_HLEN + PBUF_TRANSPORT_HLEN))))
memp.c:90
#if MEMP_MEM_MALLOC && MEMP_OVERFLOW_CHECK >= 2
memp.c:96
#if MEMP_SANITY_CHECK && !MEMP_MEM_MALLOC
memp.c:177
#if MEMP_MEM_MALLOC
memp.c:253
#if MEMP_MEM_MALLOC
memp.c:263
#if !MEMP_MEM_MALLOC
memp.c:380
#if MEMP_MEM_MALLOC
memp.h:69
#if MEMP_MEM_MALLOC
memp_priv.h:68
#if !MEMP_MEM_MALLOC || MEMP_OVERFLOW_CHECK
memp_priv.h:121
#if !MEMP_MEM_MALLOC