diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2020-02-24 11:32:43 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-03-03 00:04:31 +0300 |
commit | 444ebb5768c5c43aadfc60111fecd6c4f946e77b (patch) | |
tree | 5e57b8570c909b72d9332a7f09a0ec5fd75c29cb /include/linux/splice.h | |
parent | bcaec089c5b64953f96a59089598643911765a43 (diff) | |
download | linux-444ebb5768c5c43aadfc60111fecd6c4f946e77b.tar.xz |
splice: make do_splice public
Make do_splice(), so other kernel parts can reuse it
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/splice.h')
-rw-r--r-- | include/linux/splice.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/splice.h b/include/linux/splice.h index 74b4911ac16d..ebbbfea48aa0 100644 --- a/include/linux/splice.h +++ b/include/linux/splice.h @@ -78,6 +78,9 @@ extern ssize_t add_to_pipe(struct pipe_inode_info *, struct pipe_buffer *); extern ssize_t splice_direct_to_actor(struct file *, struct splice_desc *, splice_direct_actor *); +extern long do_splice(struct file *in, loff_t __user *off_in, + struct file *out, loff_t __user *off_out, + size_t len, unsigned int flags); /* * for dynamic pipe sizing |