PR_GET_THP_DISABLE
get the state of the "THP disable" flags for the calling thread
- Provided by: manpages-dev (Version: 6.17-1)
- Source: manpages
- Report a bug
get the state of the "THP disable" flags for the calling thread
Standard C library (libc, -lc)
#include <linux/prctl.h> /* Definition of PR_* constants */ #include <sys/prctl.h>
int prctl(PR_GET_THP_DISABLE, 0L, 0L, 0L, 0L);
Return a value whose bits indicate how THP-disable is configured for the calling thread. The returned value is interpreted as follows:
On success, PR_GET_THP_DISABLE, returns the value described above. On error, -1 is returned, and errno is set to indicate the error.
Linux.
Linux 3.15.