[PATCH] splice: add support for sys_tee()
authorJens Axboe <axboe@suse.de>
Tue, 11 Apr 2006 13:51:17 +0000 (15:51 +0200)
committerJens Axboe <axboe@suse.de>
Tue, 11 Apr 2006 13:51:17 +0000 (15:51 +0200)
commit70524490ee2ea1bbf6cee6c106597b3ac25a3fc2
treec61dd500035bc3e0dea364777de1b7a58b41a75c
parentcbb7e577e732f576b9f399bc2600bdc0626c68dc
[PATCH] splice: add support for sys_tee()

Basically an in-kernel implementation of tee, which uses splice and the
pipe buffers as an intelligent way to pass data around by reference.

Where the user space tee consumes the input and produces a stdout and
file output, this syscall merely duplicates the data inside a pipe to
another pipe. No data is copied, the output just grabs a reference to the
input pipe data.

Signed-off-by: Jens Axboe <axboe@suse.de>
arch/i386/kernel/syscall_table.S
arch/ia64/kernel/entry.S
arch/powerpc/kernel/systbl.S
fs/pipe.c
fs/splice.c
include/asm-i386/unistd.h
include/asm-ia64/unistd.h
include/asm-powerpc/unistd.h
include/asm-x86_64/unistd.h
include/linux/pipe_fs_i.h
include/linux/syscalls.h