about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2014-07-20 16:13:52 +0200
committerSzabolcs Nagy <nsz@port70.net>2014-07-20 18:49:16 +0200
commit871a09c86ff3466196c3bfded84c5bbeb0b07f81 (patch)
tree2c6b3ff5df0b15dcd77788be49e16b7100610d41 /include
parent6119fa32698b6e1f79564c2a30d81b179f48c156 (diff)
downloadmusl-871a09c86ff3466196c3bfded84c5bbeb0b07f81.tar.gz
musl-871a09c86ff3466196c3bfded84c5bbeb0b07f81.tar.xz
musl-871a09c86ff3466196c3bfded84c5bbeb0b07f81.zip
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
Diffstat (limited to 'include')
-rw-r--r--include/sys/prctl.h3
1 files changed, 3 insertions, 0 deletions
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