From: Ingo Molnar Date: Mon, 10 Apr 2006 13:18:58 +0000 (+0200) Subject: [PATCH] splice: add optional input and output offsets X-Git-Tag: v2.6.17-rc2~107^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=529565dcb1581c9a1e3f6df1c1763ca3e0f0d512;p=pandora-kernel.git [PATCH] splice: add optional input and output offsets add optional input and output offsets to sys_splice(), for seekable file descriptors: asmlinkage long sys_splice(int fd_in, loff_t __user *off_in, int fd_out, loff_t __user *off_out, size_t len, unsigned int flags); semantics are straightforward: f_pos will be updated with the offset provided by user-space, before the splice transfer is about to begin. Providing a NULL offset pointer means the existing f_pos will be used (and updated in situ). Providing an offset for a pipe results in -ESPIPE. Providing an invalid offset pointer results in -EFAULT. Signed-off-by: Ingo Molnar Signed-off-by: Jens Axboe --- Reading git-diff-tree failed