PR_GET_THP_DISABLE
(2const)get the state of the "THP disable" flag for the calling thread
#include <linux/prctl.h> /* Definition of PR_* constants */ #include <sys/prctl.h> int prctl(PR_GET_THP_DISABLE, 0L, 0L, 0L, 0L);
get the state of the "THP disable" flag for the calling thread