On Tue, Mar 29, 2011 at 12:23 PM, Eric Dumazet [off-list ref] wrote:
Le mardi 29 mars 2011 à 10:00 +0800, Changli Gao a écrit :
quoted
On Tue, Mar 29, 2011 at 2:34 AM, Eric Dumazet [off-list ref] wrote:
quoted
I think he concerns the overhead of system calls. In order to omit a
system call, I think you can implement sth. like this:
splice2(infd, outfd, pipefd, ...)
Yes, but given no numbers are given, and no code yet written, I ask the
question.
Giving 4 file descriptors to a single syscall sounds convoluted.
It is a waste of fd using pipe buffer with two fds. In fact, I had
ever posted a patch, which extends pipe(2) to return a O_RDWR fd when
NULL is passed in.
--
Regards,
Changli Gao(xiaosuo@gmail.com)