diff mbox series

Add MADV_DONTNEED_LOCKED from Linux 5.18 to bits/mman-linux.h

Message ID alpine.DEB.2.22.394.2205312009220.2032472@digraph.polyomino.org.uk
State New
Headers show
Series Add MADV_DONTNEED_LOCKED from Linux 5.18 to bits/mman-linux.h | expand

Commit Message

Joseph Myers May 31, 2022, 8:09 p.m. UTC
Linux 5.18 adds a constant MADV_DONTNEED_LOCKED (defined in multiple
header files, but with the same value on all architectures).  Add this
constant to bits/mman-linux.h.

Tested for x86_64.

Comments

Andreas Schwab June 1, 2022, 10:32 a.m. UTC | #1
On Mai 31 2022, Joseph Myers wrote:

> Linux 5.18 adds a constant MADV_DONTNEED_LOCKED (defined in multiple
> header files, but with the same value on all architectures).  Add this
> constant to bits/mman-linux.h.

Ok.
diff mbox series

Patch

diff --git a/sysdeps/unix/sysv/linux/bits/mman-linux.h b/sysdeps/unix/sysv/linux/bits/mman-linux.h
index 85bc4d3c3c..cb5ad30ef9 100644
--- a/sysdeps/unix/sysv/linux/bits/mman-linux.h
+++ b/sysdeps/unix/sysv/linux/bits/mman-linux.h
@@ -93,6 +93,8 @@ 
 				   readable.  */
 # define MADV_POPULATE_WRITE 23	/* Populate (prefault) page tables
 				   writable.  */
+# define MADV_DONTNEED_LOCKED 24 /* Like MADV_DONTNEED, but drop
+				    locked pages too.  */
 # define MADV_HWPOISON	  100	/* Poison a page for testing.  */
 #endif