man2/prctl.2: Add PR_GET_TID_ADDRESS description
PATCH 1/1 man2/prctl.2: Add PR_GET_TID_ADDRESS description
Signed-off-by Cyrill Gorcunov <[email protected]>
--- man2/prctl.2 | 12 ++++++++++++ 1 file changed, 12 insertions(+)
man2/prctl.2 +12 -0
@@ -761,6 +761,18 @@ option. .\" symbolic-link transitions over all process running in a system. .\" ========== END FIXME .RE +.TP +.BR PR_GET_TID_ADDRESS " (since Linux 3.5)" +Return +.I clear_child_tid +in the location pointed by +.IR "(int\ **) arg2" . +See +.BR set_tid_address (2) +for more details. +This feature is available only if the kernel is built with the +.BR CONFIG_CHECKPOINT_RESTORE +option enabled. .\" .SH "RETURN VALUE" On success,
Signature · 1 line
1.8.1.2
Hi Cyril,
Quoted 18 lines · Cyrill Gorcunov
Signed-off-by Cyrill Gorcunov <[email protected]>--- man2/prctl.2 | 12 ++++++++++++ 1 file changed, 12 insertions(+)man2/prctl.2 +5
-0@@ -761,6 +761,18 @@ option. .\" symbolic-link transitions over all process running in a system. .\" ========== END FIXME .RE +.TP +.BR PR_GET_TID_ADDRESS " (since Linux 3.5)" +Return +.I clear_child_tid +in the location pointed by
man2/prctl.2 option. · line 778
Quoted 10 lines
man2/prctl.2 +7
-0+.IR "(int\ **) arg2" . +See +.BR set_tid_address (2) +for more details. +This feature is available only if the kernel is built with the +.BR CONFIG_CHECKPOINT_RESTORE +option enabled. .\" .SH "RETURN VALUE" On success,
As it happened, I added documentation for this flag a few weeks ago, but your patc includes some details that I didn't document, so I've applied those pieces to yield:
PR_GET_TID_ADDRESS (since Linux 3.5)
Retrieve the clear_child_tid address set by
set_tid_address(2) and the clone(2) CLONE_CHILD_CLEARTID flag, in the location pointed to by (int **) arg2. This feature is available only if the kernel is built with the CONFIG_CHECKPOINT_RESTORE option enabled.
Thanks,
Michael
Signature · 3 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Author of "The Linux Programming Interface"; http://man7.org/tlpi/