Well, I'm by no means even close to an expert, but afaik that certainly
depends on how you configure lwip.
PBUF_RAM is a single consecutive chunk of RAM for a pbuf, taken from the
heap.
PBUF_POOL is a pbuf which is itself a chain of pbufs, which are chunks
of RAM taken from the pool.

Allocation of a PBUF_RAM uses mem_malloc()
Allocation of a PBUF_POOL uses memp_malloc()

Depending on your configuration, memp_malloc() can be #define'd as
mem_malloc() (when MEMP_MEM_MALLOC is defined and != 0 )

So... you'd better check their lwipopts.h

afaik, for a "common" use, the pool and the heap are separate pieces of
RAM and the phrase you highlighted is controversial, but since it
involves macros not belonging to lwip...

-- 


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

Reply via email to