]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit62175119e2f1dc11c8f4cb71534f2d0c5a74aebd
treec61dd500035bc3e0dea364777de1b7a58b41a75c
parent25b780a676f78337f28bdacd46ef246a0362793c
[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