diff for duplicates of <20171101174712.GA26700@outlook.office365.com> diff --git a/a/2.txt b/N1/2.txt index 2396af6..8b13789 100644 --- a/a/2.txt +++ b/N1/2.txt @@ -1,71 +1 @@ -From 923cbd38805f8017b6d86ac6a12c8f45a4117399 Mon Sep 17 00:00:00 2001 -From: Andrei Vagin <avagin@openvz.org> -Date: Wed, 1 Nov 2017 10:26:06 -0700 -Subject: [PATCH] vmsplice.2: add description for process_vmsplice -Signed-off-by: Andrei Vagin <avagin@openvz.org> ---- - man2/vmsplice.2 | 20 +++++++++++++++++++- - 1 file changed, 19 insertions(+), 1 deletion(-) - -diff --git a/man2/vmsplice.2 b/man2/vmsplice.2 -index e3e61cf27..8b28b6fff 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, process_vmsplice \- splice user pages into a pipe - .SH SYNOPSIS - .nf - .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" -@@ -34,6 +34,8 @@ vmsplice \- splice user pages into a pipe - - .BI "ssize_t vmsplice(int " fd ", const struct iovec *" iov , - .BI " unsigned long " nr_segs ", unsigned int " flags ); -+.BI "ssize_t process_vmsplice(pid_t " pid ", int " fd ", const struct iovec *" iov , -+.BI " unsigned long " nr_segs ", unsigned int " flags ); - .fi - .\" Return type was long before glibc 2.7 - .SH DESCRIPTION -@@ -55,6 +57,12 @@ The file descriptor - .I fd - must refer to a pipe. - -+The -+.BR process_vmsplice() -+system call maps user memory from the process identified by -+.I pid -+to the local pipe. -+ - The pointer - .I iov - points to an array of -@@ -114,6 +122,7 @@ Data must also be properly page aligned, both in memory and length. - .\" commit bd1a68b59c8e3bce45fb76632c64e1e063c3962d - .\" - .\" .... if we expect to later SPLICE_F_MOVE to the cache. -+ - .SH RETURN VALUE - Upon successful completion, - .BR vmsplice () -@@ -145,6 +154,15 @@ set. - .TP - .B ENOMEM - Out of memory. -+.TP -+.B ESRCH -+No process with ID -+.I pid -+exists. -+.TP -+.B EPERM -+The caller does not have permission to access the address space of the process -+.IR pid . - .SH VERSIONS - The - .BR vmsplice () --- -2.13.6 diff --git a/a/content_digest b/N1/content_digest index 7c8a204..d9a4a82 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -52,76 +52,5 @@ "\01:2\0" "fn\00001-vmsplice.2-add-description-for-process_vmsplice.patch\0" "b\0" - "From 923cbd38805f8017b6d86ac6a12c8f45a4117399 Mon Sep 17 00:00:00 2001\n" - "From: Andrei Vagin <avagin@openvz.org>\n" - "Date: Wed, 1 Nov 2017 10:26:06 -0700\n" - "Subject: [PATCH] vmsplice.2: add description for process_vmsplice\n" - "\n" - "Signed-off-by: Andrei Vagin <avagin@openvz.org>\n" - "---\n" - " man2/vmsplice.2 | 20 +++++++++++++++++++-\n" - " 1 file changed, 19 insertions(+), 1 deletion(-)\n" - "\n" - "diff --git a/man2/vmsplice.2 b/man2/vmsplice.2\n" - "index e3e61cf27..8b28b6fff 100644\n" - "--- a/man2/vmsplice.2\n" - "+++ b/man2/vmsplice.2\n" - "@@ -25,7 +25,7 @@\n" - " .\\\"\n" - " .TH VMSPLICE 2 2014-10-02 \"Linux\" \"Linux Programmer's Manual\"\n" - " .SH NAME\n" - "-vmsplice \\- splice user pages into a pipe\n" - "+vmsplice, process_vmsplice \\- splice user pages into a pipe\n" - " .SH SYNOPSIS\n" - " .nf\n" - " .BR \"#define _GNU_SOURCE\" \" /* See feature_test_macros(7) */\"\n" - "@@ -34,6 +34,8 @@ vmsplice \\- splice user pages into a pipe\n" - " \n" - " .BI \"ssize_t vmsplice(int \" fd \", const struct iovec *\" iov ,\n" - " .BI \" unsigned long \" nr_segs \", unsigned int \" flags );\n" - "+.BI \"ssize_t process_vmsplice(pid_t \" pid \", int \" fd \", const struct iovec *\" iov ,\n" - "+.BI \" unsigned long \" nr_segs \", unsigned int \" flags );\n" - " .fi\n" - " .\\\" Return type was long before glibc 2.7\n" - " .SH DESCRIPTION\n" - "@@ -55,6 +57,12 @@ The file descriptor\n" - " .I fd\n" - " must refer to a pipe.\n" - " \n" - "+The\n" - "+.BR process_vmsplice()\n" - "+system call maps user memory from the process identified by\n" - "+.I pid\n" - "+to the local pipe.\n" - "+\n" - " The pointer\n" - " .I iov\n" - " points to an array of\n" - "@@ -114,6 +122,7 @@ Data must also be properly page aligned, both in memory and length.\n" - " .\\\"\tcommit bd1a68b59c8e3bce45fb76632c64e1e063c3962d\n" - " .\\\"\n" - " .\\\" .... if we expect to later SPLICE_F_MOVE to the cache.\n" - "+\n" - " .SH RETURN VALUE\n" - " Upon successful completion,\n" - " .BR vmsplice ()\n" - "@@ -145,6 +154,15 @@ set.\n" - " .TP\n" - " .B ENOMEM\n" - " Out of memory.\n" - "+.TP\n" - "+.B ESRCH\n" - "+No process with ID\n" - "+.I pid\n" - "+exists.\n" - "+.TP\n" - "+.B EPERM\n" - "+The caller does not have permission to access the address space of the process\n" - "+.IR pid .\n" - " .SH VERSIONS\n" - " The\n" - " .BR vmsplice ()\n" - "-- \n" - 2.13.6 -1b8b5bfb8ec3ae5dea962872463f731c17cc15d75fa2a409f6e3ece143220a2a +92f0da4035db5ef9ac7e0ed6e746dfac70bcb5bf9366e7faf5f250724562177d
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox