Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Mar 2001 16:44:11 +0100
From:      Maxime Henrion <mux@qualys.com>
To:        arch@FreeBSD.org
Subject:   Proposal for a new syscall
Message-ID:  <20010317164411.A420@nebula.cybercable.fr>

next in thread | raw e-mail | index | archive | help
	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 ?

Just my $0.02,
Maxime
-- 
Don't be fooled by cheap finnish imitations ; BSD is the One True Code
Key fingerprint = F9B6 1D5A 4963 331C 88FC  CA6A AB50 1EF2 8CBE 99D6
Public Key : http://www.epita.fr/~henrio_m/

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?20010317164411.A420>