aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2017-02-15 15:14:42 -0500
committerMichael Kerrisk <mtk.manpages@gmail.com>2017-04-19 15:52:04 +0200
commit7e3236a5a0106b48c7f3aed1480ca936c26603f7 (patch)
tree7f809deb22a0458f1e77c9f9a20db3a78462b525
parenta87d0921a7cceb1c9cc15f7319e17499232afffd (diff)
downloadman-pages-7e3236a5a010.tar.gz
prctl(2): PR_SET_MM: Document new PR_SET_MM_MAP{,_SIZE} helpers
Signed-off-by: Mike Frysinger <vapier@chromium.org> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/prctl.228
1 files changed, 28 insertions, 0 deletions
diff --git a/man2/prctl.2 b/man2/prctl.2
index c6d828a910..5607188440 100644
--- a/man2/prctl.2
+++ b/man2/prctl.2
@@ -652,6 +652,34 @@ in a process life time.
Any further attempts will be rejected.
This should help system administrators monitor unusual
symbolic-link transitions over all processes running on a system.
+.P
+The following options are available since Linux 3.18.
+.\" commit f606b77f1a9e362451aca8f81d8f36a3a112139e
+.TP
+.BR PR_SET_MM_MAP
+Provides one-shot access to all the addresses by passing in a
+.I struct prctl_mm_map
+(as defined in \fI<linux/prctl.h>\fP).
+The
+.I arg4
+argument should provide the size of the struct.
+
+This feature is available only if the kernel is built with the
+.BR CONFIG_CHECKPOINT_RESTORE
+option enabled.
+.TP
+.BR PR_SET_MM_MAP_SIZE
+Returns the size of the
+.I struct prctl_mm_map
+the kernel expects.
+This allows user space to find a compatible struct.
+The
+.I arg4
+argument should be a pointer to an unsigned int.
+
+This feature is available only if the kernel is built with the
+.BR CONFIG_CHECKPOINT_RESTORE
+option enabled.
.RE
.TP
.BR PR_MPX_ENABLE_MANAGEMENT ", " PR_MPX_DISABLE_MANAGEMENT " (since Linux 3.19) "