lwip-devel
[Top][All Lists]
Advanced

[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:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13

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:

  <http://savannah.nongnu.org/bugs/?21433>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

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