diff options
| author | Alejandro Colomar <alx@kernel.org> | 2024-05-28 15:47:56 +0200 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2024-05-31 01:37:51 +0200 |
| commit | 80522afd3069e45d96a0515767fc921b2954dedd (patch) | |
| tree | ce349dba7c97a7e2d288b34cdae5f4c6a88adc76 | |
| parent | 5c749ab3a12657696da8f8a35d18111a8e7ac533 (diff) | |
| download | man-pages-80522afd3069e45d96a0515767fc921b2954dedd.tar.gz | |
prctl.2, PR_GET_IO_FLUSHER.2const: Split PR_GET_IO_FLUSHER from prctl(2)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
| -rw-r--r-- | man/man2/prctl.2 | 21 | ||||
| -rw-r--r-- | man/man2const/PR_GET_IO_FLUSHER.2const | 49 |
2 files changed, 52 insertions, 18 deletions
diff --git a/man/man2/prctl.2 b/man/man2/prctl.2 index 2c22552380..79880079ca 100644 --- a/man/man2/prctl.2 +++ b/man/man2/prctl.2 @@ -93,23 +93,8 @@ The first argument can be: .B PR_GET_FPEXC .TQ .B PR_SET_IO_FLUSHER -.\" prctl PR_GET_IO_FLUSHER -.TP -.B PR_GET_IO_FLUSHER (Since Linux 5.6) -Return (as the function result) the IO_FLUSHER state of the caller. -A value of 1 indicates that the caller is in the IO_FLUSHER state; -0 indicates that the caller is not in the IO_FLUSHER state. -.IP -The calling process must have the -.B CAP_SYS_RESOURCE -capability. -.IP -.IR arg2 , -.IR arg3 , -.IR arg4 , -and -.I arg5 -must be zero. +.TQ +.B PR_GET_IO_FLUSHER .\" prctl PR_SET_KEEPCAPS .TP .BR PR_SET_KEEPCAPS " (since Linux 2.2.18)" @@ -1661,7 +1646,6 @@ of the calling process. for information on the protection mask bits.) .SH RETURN VALUE On success, -.BR PR_GET_IO_FLUSHER , .BR PR_GET_KEEPCAPS , .BR PR_MCE_KILL_GET , .BR PR_GET_NO_NEW_PRIVS , @@ -2035,4 +2019,5 @@ glibc 2.0.6 .BR PR_SET_FPEXC (2const), .BR PR_GET_FPEXC (2const), .BR PR_SET_IO_FLUSHER (2const), +.BR PR_GET_IO_FLUSHER (2const), .BR core (5) diff --git a/man/man2const/PR_GET_IO_FLUSHER.2const b/man/man2const/PR_GET_IO_FLUSHER.2const new file mode 100644 index 0000000000..2d6979d31c --- /dev/null +++ b/man/man2const/PR_GET_IO_FLUSHER.2const @@ -0,0 +1,49 @@ +.\" Copyright 2020, Mike Christie <mchristi@redhat.com> +.\" Copyright 2020, Michael Kerrisk <mtk.manpages@gmail.com> +.\" +.\" SPDX-License-Identifier: Linux-man-pages-copyleft +.\" +.TH PR_GET_IO_FLUSHER 2const (date) "Linux man-pages (unreleased)" +.SH NAME +PR_GET_IO_FLUSHER +\- +get the IO_FLUSHER state +.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 +.B PR_GET_IO_FLUSHER (Since Linux 5.6) +Return (as the function result) the IO_FLUSHER state of the caller. +A value of 1 indicates that the caller is in the IO_FLUSHER state; +0 indicates that the caller is not in the IO_FLUSHER state. +.IP +The calling process must have the +.B CAP_SYS_RESOURCE +capability. +.IP +.IR arg2 , +.IR arg3 , +.IR arg4 , +and +.I arg5 +must be zero. +.SH RETURN VALUE +On success, +.BR PR_GET_IO_FLUSHER , +return the nonnegative values 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_IO_FLUSHER (2const) |
