lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] I free all pbufs that I reserve but pbuf_pool is full !


From: Kieran Mansley
Subject: Re: [lwip-users] I free all pbufs that I reserve but pbuf_pool is full !!
Date: Wed, 26 Feb 2003 19:21:36 +0000 (GMT)

On Wed, 26 Feb 2003, Sergio PérezAlcañiz wrote:
> The problems deal with pbufs from the pbuf_pool. I'm using the raw API
> to access them. It looks like if PBUF_POOL_FREE is not freeing those
> pbufs allocated in pbuf_pool_alloc_cache.

Having had a look at the code, it would seem that pbuf_refresh is not
getting called.  There is also (confusingly) a macro PBUF_POOL_FREE and a
function pbuf_pool_free.  The macro puts pbufs on the
pbuf_pool_free_cache, and the function puts them on pbuf_pool_alloc_cache.
This seems strange to me, although I haven't time right now to look at it
in detail, so it may be intended to be that way.  Both macro and function
are used by different bits of the code.  Does anyone else have any
thoughts on this?

To sort out the original problem, I would check that pbuf_refresh is
getting called.  This should happen in pbuf_free, but it would appear that
for some reason it isn't.  (btw, do you make any calls to pbuf_pool_free
or PBUF_POOL_FREE directly?  You should only free pbufs through pbuf_free,
which will then call the correct function depending on its type).

Thanks

Kieran





reply via email to

[Prev in Thread] Current Thread [Next in Thread]