svn commit: r241931 - in head/sys: conf kern

David Chisnall theraven at FreeBSD.org
Tue Oct 23 15:12:36 UTC 2012


On 23 Oct 2012, at 16:05, Andre Oppermann wrote:

> For zero copy send we're trying to come up with a sendfile-like
> approach where the page is simply wired into kernel space.  The
> application then is not allowed to touch it until the socket
> buffer has released it again.  The main issue here is how to
> provide feedback to the application when it is safe for reuse.

It's been a few years since I used it, but I thought that aio_write() already provided this.  The application may not modify the contents of the memory pointed to by aio_buf until after it has received notification that the write has finished.  This happens either via a signal directly, a signal polled by kqueue, or a call to aio_return().

David


More information about the svn-src-head mailing list