All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] man2/vmsplice: splice pages from pipe to memory
@ 2017-11-07  7:34 Andrei Vagin
  0 siblings, 0 replies; only message in thread
From: Andrei Vagin @ 2017-11-07  7:34 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w
  Cc: linux-man-u79uwXL29TY76Z2rM5mHXA,
	linux-api-u79uwXL29TY76Z2rM5mHXA, Andrei Vagin, Jens Axboe

The man page describes that vmsplice can splice pages from
memory to a pipe, but it can work to anonther direction as well.

Cc: Jens Axboe <axboe-tSWWG44O7X1aa/9Udqfwiw@public.gmane.org>
Signed-off-by: Andrei Vagin <avagin-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
---
 man2/vmsplice.2 | 24 +++++++++++++++++++++---
 1 file changed, 21 insertions(+), 3 deletions(-)

diff --git a/man2/vmsplice.2 b/man2/vmsplice.2
index e3e61cf27..8f48b8809 100644
--- a/man2/vmsplice.2
+++ b/man2/vmsplice.2
@@ -25,7 +25,7 @@
 .\"
 .TH VMSPLICE 2 2014-10-02 "Linux" "Linux Programmer's Manual"
 .SH NAME
-vmsplice \- splice user pages into a pipe
+vmsplice \- splice user pages to/from a pipe
 .SH SYNOPSIS
 .nf
 .BR "#define _GNU_SOURCE" "         /* See feature_test_macros(7) */"
@@ -44,13 +44,25 @@ vmsplice \- splice user pages into a pipe
 .\" the kernel-space one (contrast this to "write()", which copies
 .\" the actual data, and you can thus reuse the buffer immediately
 .\" after a successful write), but that is often easy to do.
-The
+If
+.I fd
+is opened for writting, the
 .BR vmsplice ()
 system call maps
 .I nr_segs
 ranges of user memory described by
 .I iov
 into a pipe.
+.\" commit 6a14b90bb6bc7cd83e2a444bf457a2ea645cbfe7
+If
+.I fd
+is opened for reading, the
+.BR vmsplice ()
+system call fills
+.I nr_segs
+ranges of user memory described by
+.I iov
+from a pipe.
 The file descriptor
 .I fd
 must refer to a pipe.
@@ -70,7 +82,6 @@ struct iovec {
 };
 .in
 .fi

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-11-07  7:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-07  7:34 [PATCH] man2/vmsplice: splice pages from pipe to memory Andrei Vagin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.