summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Biesek <michalbiesek@gmail.com>2023-08-08 21:41:06 +0200
committerRich Felker <dalias@aerifal.cx>2026-03-19 09:57:30 -0400
commit19f9aeaaba1bde5b541b7758cbf661ba29fb9cea (patch)
tree18fc31b557baad3b6387473df0259146d689d2dc
parent56df2e1fc1528ece18001ed430d714356ea10340 (diff)
downloadmusl-19f9aeaaba1bde5b541b7758cbf661ba29fb9cea.tar.gz
sys/mman.h: add MADV_COLLAPSE from linux v6.1
Add madvise flag which performs a best-effort synchronous collapse of the native pages mapped by the memory range into Transparent Huge Pages (THPs) see linux commit 7d8faaf155454f8798ec56404faca29a82689c77 mm/madvise: introduce MADV_COLLAPSE sync hugepage collapse
-rw-r--r--include/sys/mman.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/mman.h b/include/sys/mman.h
index 0184f642..aa2c4817 100644
--- a/include/sys/mman.h
+++ b/include/sys/mman.h
@@ -98,6 +98,7 @@ extern "C" {
#define MADV_POPULATE_READ 22
#define MADV_POPULATE_WRITE 23
#define MADV_DONTNEED_LOCKED 24
+#define MADV_COLLAPSE 25
#define MADV_HWPOISON 100
#define MADV_SOFT_OFFLINE 101
#endif