Re: Linux Zero Copy

From: Jeff Garzik (jgarzik@pobox.com)
Date: Fri Aug 15 2003 - 08:28:56 EST


David S. Miller wrote:
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.

Or create a file on ramfs and sendfile(2) it.

Jeff



-
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