| 1 |
.\" Copyright 2020, Mike Christie <[email protected]> |
| 2 |
.\" Copyright 2020, Michael Kerrisk <[email protected]> |
| 3 |
.\" Copyright, the authors of the Linux man-pages project |
| 4 |
.\" |
| 5 |
.\" SPDX-License-Identifier: Linux-man-pages-copyleft |
| 6 |
.\" |
| 7 |
.TH PR_GET_IO_FLUSHER 2const 2026-02-08 "Linux man-pages 6.18" |
| 8 |
.SH NAME |
| 9 |
PR_GET_IO_FLUSHER |
| 10 |
\- |
| 11 |
get the IO_FLUSHER state |
| 12 |
.SH LIBRARY |
| 13 |
Standard C library |
| 14 |
.RI ( libc ,\~ \-lc ) |
| 15 |
.SH SYNOPSIS |
| 16 |
.nf |
| 17 |
.BR "#include <linux/prctl.h>" " /* Definition of " PR_* " constants */" |
| 18 |
.B #include <sys/prctl.h> |
| 19 |
.P |
| 20 |
.B int prctl(PR_GET_IO_FLUSHER, 0L, 0L, 0L, 0L); |
| 21 |
.fi |
| 22 |
.SH DESCRIPTION |
| 23 |
Return the IO_FLUSHER state of the caller. |
| 24 |
A value of 1 indicates that the caller is in the IO_FLUSHER state; |
| 25 |
0 indicates that the caller is not in the IO_FLUSHER state. |
| 26 |
.P |
| 27 |
The calling process must have the |
| 28 |
.B CAP_SYS_RESOURCE |
| 29 |
capability. |
| 30 |
.SH RETURN VALUE |
| 31 |
On success, |
| 32 |
this call |
| 33 |
returns the boolean value described above. |
| 34 |
On error, \-1 is returned, and |
| 35 |
.I errno |
| 36 |
is set to indicate the error. |
| 37 |
.SH STANDARDS |
| 38 |
Linux. |
| 39 |
.SH HISTORY |
| 40 |
Linux 5.6. |
| 41 |
.SH SEE ALSO |
| 42 |
.BR prctl (2), |
| 43 |
.BR PR_SET_IO_FLUSHER (2const) |