]> sourceware.org Git - glibc.git/commitdiff
Add MADV_DONTNEED_LOCKED from Linux 5.18 to bits/mman-linux.h
authorJoseph Myers <joseph@codesourcery.com>
Wed, 1 Jun 2022 14:45:48 +0000 (14:45 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 1 Jun 2022 14:45:48 +0000 (14:45 +0000)
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.

sysdeps/unix/sysv/linux/bits/mman-linux.h

index 85bc4d3c3c87bb4245ad238fe04c4d01e6787477..cb5ad30ef9c905690aa9c40d2e0c726f0e8a57cc 100644 (file)
@@ -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
 
This page took 0.047157 seconds and 5 git commands to generate.