]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
prctl.2, PR_GET_THP_DISABLE.2const: Split PR_GET_THP_DISABLE from prctl(2)
authorAlejandro Colomar <alx@kernel.org>
Thu, 30 May 2024 15:52:29 +0000 (17:52 +0200)
committerAlejandro Colomar <alx@kernel.org>
Fri, 31 May 2024 15:09:33 +0000 (17:09 +0200)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man2/prctl.2
man/man2const/PR_GET_THP_DISABLE.2const [new file with mode: 0644]

index 6c59d2cb1894a0f3702d8ee0726cf75e60916294..5773b10b5e1e757ea932f73b7cea527d6581ca2c 100644 (file)
@@ -141,12 +141,8 @@ The first argument can be:
 .B PR_TASK_PERF_EVENTS_ENABLE
 .TQ
 .B PR_SET_THP_DISABLE
-.\" prctl PR_GET_THP_DISABLE
-.TP
-.BR PR_GET_THP_DISABLE " (since Linux 3.15)"
-Return (as the function result) the current setting of the "THP disable"
-flag for the calling thread:
-either 1, if the flag is set, or 0, if it is not.
+.TQ
+.B PR_GET_THP_DISABLE
 .\" prctl PR_GET_TID_ADDRESS
 .TP
 .BR PR_GET_TID_ADDRESS " (since Linux 3.5)"
@@ -366,7 +362,6 @@ of the calling process.
 for information on the protection mask bits.)
 .SH RETURN VALUE
 On success,
-.BR PR_GET_THP_DISABLE ,
 .BR PR_GET_TIMING ,
 .BR PR_GET_TIMERSLACK ,
 .BR PR_GET_AUXV ,
@@ -476,4 +471,5 @@ glibc 2.0.6
 .BR PR_TASK_PERF_EVENTS_DISABLE (2const),
 .BR PR_TASK_PERF_EVENTS_ENABLE (2const),
 .BR PR_SET_THP_DISABLE (2const),
+.BR PR_GET_THP_DISABLE (2const),
 .BR core (5)
diff --git a/man/man2const/PR_GET_THP_DISABLE.2const b/man/man2const/PR_GET_THP_DISABLE.2const
new file mode 100644 (file)
index 0000000..4a08250
--- /dev/null
@@ -0,0 +1,37 @@
+.\" Copyright 2014, 2015, Michael Kerrisk <mtk.manpages@gmail.com>
+.\"
+.\" SPDX-License-Identifier: Linux-man-pages-copyleft
+.\"
+.TH PR_GET_THP_DISABLE 2const (date) "Linux man-pages (unreleased)"
+.SH NAME
+PR_GET_THP_DISABLE
+\-
+get the state of the "THP disable" flag for the calling thread
+.SH LIBRARY
+Standard C library
+.RI ( libc ", " \-lc )
+.SH SYNOPSIS
+.nf
+.B #include <sys/prctl.h>
+.P
+.BI "int prctl(int " op ", ...);"
+.fi
+.SH DESCRIPTION
+.TP
+.BR PR_GET_THP_DISABLE " (since Linux 3.15)"
+Return (as the function result) the current setting of the "THP disable"
+flag for the calling thread:
+either 1, if the flag is set, or 0, if it is not.
+.SH RETURN VALUE
+On success,
+.BR PR_GET_THP_DISABLE ,
+returns the boolean value described above.
+On error, \-1 is returned, and
+.I errno
+is set to indicate the error.
+.SH STANDARDS
+Linux.
+.SH HISTORY
+.SH SEE ALSO
+.BR prctl (2),
+.BR PR_SET_THP_DISABLE (2const)