Re: [PATCH] prctl.2: Document PR_GET_AUXV

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

 



On 6/28/23 20:27, Josh Triplett wrote:
Signed-off-by: Josh Triplett <josh@xxxxxxxxxxxxxxxx>
---


Hi Josh!

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


Thanks.  Patch applied.

Cheers,
Alex

  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.

--
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


[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