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:
|
No THP-disable behavior specified. |
|---|---|
|
THP is entirely disabled for this process. |
|
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.