mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] [PATCH] sys/mman.h: add MADV_COLLAPSE from linux v6.1
@ 2023-08-08 19:41 Michal Biesek
  0 siblings, 0 replies; only message in thread
From: Michal Biesek @ 2023-08-08 19:41 UTC (permalink / raw)
  To: musl; +Cc: Michal Biesek

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
---
 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
 #endif
-- 
2.34.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-08-08 19:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-08 19:41 [musl] [PATCH] sys/mman.h: add MADV_COLLAPSE from linux v6.1 Michal Biesek

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).