[Top][All Lists]

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

[lwip-devel] [bug #21433] Calling mem_free/pbuf_free from interrupt cont

From: Simon Goldschmidt
Subject: [lwip-devel] [bug #21433] Calling mem_free/pbuf_free from interrupt context isn't safe
Date: Thu, 27 Mar 2008 19:29:51 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv: Gecko/20080311 Firefox/

Update of bug #21433 (project lwip):

                  Status:                    None => Ready For Test         
             Assigned to:                    None => goldsimon              


Follow-up Comment #14:

I included a new option LWIP_USE_HEAP_FROM_INTERRUPT in opt.h (default = 0)
that lets mem.c disable interrupts instead of using a semaphore (well
documented in opt.h).

Additionally, I included a define tcpip_callback_nonblocking() and a function
pbuf_free_int(struct pbuf) in tcpip.h, which lets you call

- tcpip_callback_nonblocking(pbuf_free_int, p);
- tcpip_callback_nonblocking(mem_free, m);

from interrupt level to free pbufs or heap pointers.

Anything missing?


Reply to this item at:


  Nachricht geschickt von/durch Savannah

reply via email to

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