---
name: "PR_GET_THP_DISABLE"
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_THP_DISABLE"
---

# PR\_GET\_THP\_DISABLE(2const)

get the state of the "THP disable" flags for the calling thread

## NAME

PR\_GET\_THP\_DISABLE - get the state of the "THP disable" flags for the calling thread

## LIBRARY

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

## SYNOPSIS

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

**int prctl(PR\_GET\_THP\_DISABLE, 0L, 0L, 0L, 0L);**

## DESCRIPTION

Return a value whose bits indicate how THP-disable is configured for the calling thread. The returned value is interpreted as follows:

- **0b00**

  No THP-disable behavior specified.

- **0b01**

  THP is entirely disabled for this process.

- **0b11**

  THP-except-advised mode is set for this process.

## RETURN VALUE

On success, **PR\_GET\_THP\_DISABLE**, returns the value described above. On error, -1 is returned, and *errno* is set to indicate the error.

## STANDARDS

Linux.

## HISTORY

Linux 3.15.

## SEE ALSO

[**prctl**(2)](/prctl/2.md), [**PR\_SET\_THP\_DISABLE**(2const)](/PR_SET_THP_DISABLE/2const.md)
