Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Mar 2001 11:04:18 -0600
From:      Jonathan Lemon <jlemon@flugsvamp.com>
To:        Maxime Henrion <mux@qualys.com>
Cc:        arch@FreeBSD.ORG
Subject:   Re: Proposal for a new syscall
Message-ID:  <20010317110418.Z82645@prism.flugsvamp.com>
In-Reply-To: <20010317164411.A420@nebula.cybercable.fr>
References:  <20010317164411.A420@nebula.cybercable.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 17, 2001 at 04:44:11PM +0100, Maxime Henrion wrote:
> 	Hello,
> 
> While I was writing a network application, I was thinking that it would
> be nice to have a syscall that could "bind" two file descriptors, of any
> type (socket, file...), a bit like funopen() does in the libc.  Having
> such a syscall in the kernel would allow to implement "zero-copy"
> wherever it is feasible.
> 
> Then, sendfile() would just be a particular case of this syscall, where
> the input fd is a file and the output fd is a socket, and it could be
> rewritten using it.
> 
> Do you think this makes sense and it would be useful to have ?

Yes, but it is decidedly non-trivial to implement.
--
Jonathan

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010317110418.Z82645>