PR_GET_THP_DISABLE(2const)

PR_GET_THP_DISABLE2const

Get the state of the "thp disable" flags for the calling thread

Usage

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

int prctl(PR_GET_THP_DISABLE, 0L, 0L, 0L, 0L);

Library

Standard C library (libc, -lc)

Overview

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.

Releases

2 releases since Debian 13 (Trixie); the text changed 1 time.

  1. 13
  2. Arch

Standards

Linux.

History

Linux 3.15.

From man-pages 6.19-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.