Re: Linux Zero Copy

From: David S. Miller (davem@redhat.com)
Date: Thu Aug 14 2003 - 21:07:25 EST


On Wed, 13 Aug 2003 21:43:41 +0530 (IST)
Nagendra Singh Tomar <nagendra_tomar@xxxxxxxxxxx> wrote:

> So this means that this Zero Copy can only be used by senders who
> have to send data from a "file" that supports mmap.

No, a "file" that supports specifically sendfile().

> I just can't
> fill a buffer in userland and expect it to be sent via Zero Copy.

Sure you can, create a temporary file, mmap() it into your
address space, use that mmap()'d area as a local buffer
and use sendfile() on that file to send the data over the socket.
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html