[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Patch to update from 1.4.0 to 1.4.x?
From: |
Sergio R. Caprile |
Subject: |
Re: [lwip-users] Patch to update from 1.4.0 to 1.4.x? |
Date: |
Wed, 14 Oct 2015 19:03:04 -0300 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
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...
--