[PATCH] prctl.2: Document PR_GET_AUXV

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Josh Triplett <josh@xxxxxxxxxxxxxxxx>
---

I contributed this feature to the kernel, and it shipped in Linux 6.4.
Add documentation for it.

 man2/prctl.2 | 12 ++++++++++++
 1 file changed, 12 insertions(+)

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.
-- 
2.40.1




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux