[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
zero_copy in RTEMS
- Date: Mon, 22 Dec 2008 07:02:34 +1100
- From: chrisj at rtems.org (Chris Johns)
- Subject: zero_copy in RTEMS
Gene Smith wrote:
> ??? wrote, On 12/19/2008 07:14 AM:
>> Hi all:
>> Does anyone know how to implement zero copy in RTEMS ?
>> Thanks in advance.
> I assume you are referring to the tcp/ip stack? I think some DMA
> controllers can put their inputs and accept outputs directly from BSD
> mbufs (like EMAC on ppc405gpr controller).
Same with the Coldfire FEC.
> But I am not sure how many
> other places (or even if) the packets are memcpy'd in the stack.
Only when placing the data into your buffer when receiving or taking it out to
send. The mbufs are part of the implementation and not part of the socket API
so a copy is needed at that interface.