[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>
Bu işleme şunda yer alıyor:
Jens Axboe
2006-04-11 15:51:17 +02:00
ebeveyn cbb7e577e7
işleme 70524490ee
11 değiştirilmiş dosya ile 208 ekleme ve 4 silme

Dosyayı Görüntüle

@@ -323,3 +323,4 @@ COMPAT_SYS(pselect6)
COMPAT_SYS(ppoll)
SYSCALL(unshare)
SYSCALL(splice)
SYSCALL(tee)