summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2023-06-28 11:27:56 -0700
committerAlejandro Colomar <alx@kernel.org>2023-07-08 18:32:59 +0200
commit8cf0c06bfd3c2b219b044d4151c96f0da50af9ad (patch)
treeebc5dc775b1a12bea61a3ec661b7d1ed39f92a9f
parentf9f86b3d5f11ff9e3035e6f27cc57a333809e05e (diff)
prctl.2: Document PR_GET_AUXV
Signed-off-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man2/prctl.212
1 files changed, 12 insertions, 0 deletions
diff --git a/man2/prctl.2 b/man2/prctl.2
index 09e9072fa..30211a9e2 100644
--- a/man2/prctl.2
+++ b/man2/prctl.2
@@ -2027,6 +2027,17 @@ system call on Tru64).
for information on versions and architectures.)
Return unaligned access control bits, in the location pointed to by
.IR "(unsigned int\~*) arg2" .
+.\" prctl PR_GET_AUXV
+.TP
+.BR PR_GET_AUXV " (since Linux 6.4)"
+Get the auxilliary vector (auxv) into the buffer pointed to by
+.IR "(void\~*) arg2" ,
+whose length is given by \fIarg3\fP.
+If the buffer is not long enough for the full auxilliary vector,
+the copy will be truncated.
+Return (as the function result)
+the full length of the auxilliary vector.
+\fIarg4\fP and \fIarg5\fP must be 0.
.SH RETURN VALUE
On success,
.BR PR_CAP_AMBIENT + PR_CAP_AMBIENT_IS_SET ,
@@ -2045,6 +2056,7 @@ On success,
.BR PR_GET_THP_DISABLE ,
.BR PR_GET_TIMING ,
.BR PR_GET_TIMERSLACK ,
+.BR PR_GET_AUXV ,
and (if it returns)
.B PR_GET_SECCOMP
return the nonnegative values described above.