|
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
[Prev in Thread] | Current Thread | [Next in Thread] |