[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] Re: again... Zero Copy Ethernet interface
From: |
Jakob Stoklund Olesen |
Subject: |
[lwip-devel] Re: again... Zero Copy Ethernet interface |
Date: |
Sat, 24 Jan 2009 14:11:08 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
"bill" <address@hidden> writes:
>> dma_done(dma_transfer *tr)
>> {
>> pbuf_free(tr->pb);
>> }
>>
> Is dma_done called from a DMA-complete ISR? If so, is it safe to do? If
> not, how are you signaling to the main thread/code that the DMA is complete?
It is not called directly from the ISR, that would not be safe since I
am using malloc-backed pbufs.
The DMA ISR sends an asynchronous message that causes dma_done to be
called. This is very similar to the sys_mbox stuff.
I always treat the lwIP code as a giant monitor. There is never more
than one thread of execution entering the stack.
/stoklund
- Re: [lwip-devel] again... Zero Copy Ethernet interface, (continued)
- Re: [lwip-devel] again... Zero Copy Ethernet interface, Piero 74, 2009/01/08
- Re: [lwip-devel] again... Zero Copy Ethernet interface, Alain M., 2009/01/08
- Re: [lwip-devel] again... Zero Copy Ethernet interface, Jakob Stoklund Olesen, 2009/01/07
- RE: [lwip-devel] again... Zero Copy Ethernet interface, bill, 2009/01/07
- Re: [lwip-devel] again... Zero Copy Ethernet interface, Jakob Stoklund Olesen, 2009/01/07
- RE: [lwip-devel] again... Zero Copy Ethernet interface, bill, 2009/01/23
- [lwip-devel] Re: again... Zero Copy Ethernet interface,
Jakob Stoklund Olesen <=