---
name: "PR_GET_IO_FLUSHER"
section: "2const"
platform: "linux"
package: "man-pages"
version: "6.19-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/PR_GET_IO_FLUSHER"
---

# PR\_GET\_IO\_FLUSHER(2const)

get the IO\_FLUSHER state

## NAME

PR\_GET\_IO\_FLUSHER - get the IO\_FLUSHER state

## LIBRARY

Standard C library (*libc*, *-lc*)

## SYNOPSIS

```
#include <linux/prctl.h>  /* Definition of PR_* constants */
#include <sys/prctl.h>
```

**int prctl(PR\_GET\_IO\_FLUSHER, 0L, 0L, 0L, 0L);**

## DESCRIPTION

Return 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.

The calling process must have the **CAP\_SYS\_RESOURCE** capability.

## RETURN VALUE

On success, this call returns the boolean value described above. On error, -1 is returned, and *errno* is set to indicate the error.

## STANDARDS

Linux.

## HISTORY

Linux 5.6.

## SEE ALSO

[**prctl**(2)](/prctl/2.md), [**PR\_SET\_IO\_FLUSHER**(2const)](/PR_SET_IO_FLUSHER/2const.md)
