From: Szabolcs Nagy Date: Sun, 20 Jul 2014 14:13:52 +0000 (+0200) Subject: add new PR_SET_THP_DISABLE and PR_GET_THP_DISABLE prctl flags X-Git-Tag: v1.1.4~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=871a09c86ff3466196c3bfded84c5bbeb0b07f81;p=musl add new PR_SET_THP_DISABLE and PR_GET_THP_DISABLE prctl flags they can be used to set or query if transparent huge pages are disabled. introduced in linux 3.15 commit a0715cc22601e8830ace98366c0c2bd8da52af52 --- diff --git a/include/sys/prctl.h b/include/sys/prctl.h index d41ff0f6..8cb197c3 100644 --- a/include/sys/prctl.h +++ b/include/sys/prctl.h @@ -92,6 +92,9 @@ extern "C" { #define PR_GET_TID_ADDRESS 40 +#define PR_SET_THP_DISABLE 41 +#define PR_GET_THP_DISABLE 42 + int prctl (int, ...); #ifdef __cplusplus