RE: [PATCH] splice support #2
From: Hua Zhong
Date: Fri Mar 31 2006 - 15:36:11 EST
Hi Linus,
> The 4th reason is "tee". Again, you _could_ perhaps do "tee"
> without the pipe, but it would be a total nightmare. Now, tee
> isn't that common, but it does happen, and in particular it
> happens a lot with certain streaming content.
If I understand correctly:
splice is one fd in, one fd out
tee is one fd in, two fd out (and I'd assume the "one fd in" would always be
a pipe)
How about one fd in, N fd out? Do you then stack the tee calls using
temporary pipes?
i.e., if N=3, then we'd have:
pipe(fd_tmp_pipe);
tee(fd_in, fd_out1, fd_tmp_pipe[0];
tee(fd_tmp_pipe[1], fd_out2, fd_out3);
Basically, N-2 temporary pipes would be required.
Is this the intention?
Hua
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/