Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Date: Tue,  8 Aug 2023 11:46:09 +0200
From: Michal Biesek <michalbiesek@...il.com>
To: musl@...ts.openwall.com
Cc: Michal Biesek <michalbiesek@...il.com>
Subject: [PATCH] sys/mman.h: add MADV_POPULATE_(READ|WRITE) from linux v5.14

Add madvise flags to populate(prefault) page tables
see
  linux commit 4ca9b3859dac14bbef0c27d00667bb5b10917adb
  mm/madvise: introduce MADV_POPULATE_(READ|WRITE) to prefault page tables
---
 include/sys/mman.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/sys/mman.h b/include/sys/mman.h
index 3d5d0f9c..ba371539 100644
--- a/include/sys/mman.h
+++ b/include/sys/mman.h
@@ -95,6 +95,8 @@ extern "C" {
 #define MADV_KEEPONFORK  19
 #define MADV_COLD        20
 #define MADV_PAGEOUT     21
+#define MADV_POPULATE_READ 22
+#define MADV_POPULATE_WRITE 23
 #define MADV_HWPOISON    100
 #define MADV_SOFT_OFFLINE 101
 #endif
-- 
2.34.1

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.