Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Date: Tue,  8 Aug 2023 21:41:06 +0200
From: Michal Biesek <>
Cc: Michal Biesek <>
Subject: [PATCH] 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)
  linux commit 7d8faaf155454f8798ec56404faca29a82689c77
  mm/madvise: introduce MADV_COLLAPSE sync hugepage collapse
 include/sys/mman.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/sys/mman.h b/include/sys/mman.h
index 3d5d0f9c..fdc793a5 100644
--- a/include/sys/mman.h
+++ b/include/sys/mman.h
@@ -95,6 +95,7 @@ extern "C" {
 #define MADV_KEEPONFORK  19
 #define MADV_COLD        20
 #define MADV_PAGEOUT     21
+#define MADV_COLLAPSE    25
 #define MADV_HWPOISON    100
 #define MADV_SOFT_OFFLINE 101

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.