summaryrefslogtreecommitdiff
path: root/include/linux/splice.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-09-18 05:38:20 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2016-10-04 03:40:55 +0300
commit79fddc4efd5d4de5cf210fe5ecf4d2734140849a (patch)
treecc76cc5ce2cd39ec55d850b820c97f14a54f2728 /include/linux/splice.h
parent8924feff66f35fe22ce77aafe3f21eb8e5cff881 (diff)
downloadlinux-79fddc4efd5d4de5cf210fe5ecf4d2734140849a.tar.xz
new helper: add_to_pipe()
single-buffer analogue of splice_to_pipe(); vmsplice_to_pipe() switched to that, leaving splice_to_pipe() only for ->splice_read() instances (and that only until they are converted as well). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/splice.h')
-rw-r--r--include/linux/splice.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/splice.h b/include/linux/splice.h
index da2751d3b93d..58b300f37534 100644
--- a/include/linux/splice.h
+++ b/include/linux/splice.h
@@ -72,6 +72,8 @@ extern ssize_t __splice_from_pipe(struct pipe_inode_info *,
struct splice_desc *, splice_actor *);
extern ssize_t splice_to_pipe(struct pipe_inode_info *,
struct splice_pipe_desc *);
+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 *);