lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] low_level_output question


From: address@hidden
Subject: Re: [lwip-users] low_level_output question
Date: Tue, 07 Apr 2009 17:26:26 +0200
User-agent: Thunderbird 2.0.0.21 (Macintosh/20090302)

John Kennedy wrote:
Since pbuf_free decrements the pbuf reference count and only frees the pbuf 
when the reference count goes to zero I assumed that by incrementing the 
reference count in the Ethernet driver it would prevent the stack from freeing 
or reusing the pbuf, and that the Ethernet driver should then call pbuf_free 
when done with the pbuf.  My original question was to verify this assumption.

Your assumtption is indeed correct, but it doesn't account for application buffers used with PBUF_REF/_ROM.

Simon




reply via email to

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