About how to use the mem pool in internal of lwip

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

About how to use the mem pool in internal of lwip

lwip-users mailing list
Hi all,

I am currently transiting my project from memory heap to memory pool.

I have defined MEM_USE_POOLS and MEMP_USE_CUSTOM_POOLS to 1. Add lwippools.h as follows:
LWIP_MALLOC_MEMPOOL_START
LWIP_MALLOC_MEMPOOL(20, 256)
LWIP_MALLOC_MEMPOOL_END

Therefore, the memp_t will be as follows
typedef enum {
  MEMP_RAW_PCB,
  MEMP_UDP_PCB,
  ...
  MEMP_MLD6_GROUP,
  MEMP_PBUF,
  MEMP_PBUF_POOL,
  MEMP_MAX
} memp_t;

When my project


_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users