lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #28064] pbuf_alloc(PBUF_POOL) cannot be used from ISR


From: Simon Goldschmidt
Subject: [lwip-devel] [bug #28064] pbuf_alloc(PBUF_POOL) cannot be used from ISR any more
Date: Sun, 22 Nov 2009 15:51:29 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5

Follow-up Comment #1, bug #28064 (project lwip):

I think the simplest solution to solve this is to create macros
(LWIP_ISR_ENTER(), LWIP_ISR_LEAVE()) that increase a counter and let
pbuf_alloc check that counter. Then, these macros would have to be called from
ISRs wanting to use lwIP.

I think allocating pbufs from ISRs is a worthy feature to keep netif drivers
simple.

    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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