lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] Re: again... Zero Copy Ethernet interface


From: Piero 74
Subject: Re: [lwip-devel] Re: again... Zero Copy Ethernet interface
Date: Fri, 3 Apr 2009 23:34:50 +0200

kieran,

could we plan something related to this discussion for 1.4.0 release?

i hope i can help in some way!

bye,
Piero


2009/1/24, Jakob Stoklund Olesen <address@hidden>:
> "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
>
>
>
> _______________________________________________
> lwip-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/lwip-devel
>




reply via email to

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