From: Joseph Myers Date: Wed, 1 Jun 2022 14:45:48 +0000 (+0000) Subject: Add MADV_DONTNEED_LOCKED from Linux 5.18 to bits/mman-linux.h X-Git-Tag: glibc-2.36~209 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de3501d60fac6d194954e0ccc7bd297f53442b3e;p=thirdparty%2Fglibc.git Add MADV_DONTNEED_LOCKED from Linux 5.18 to bits/mman-linux.h 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. --- diff --git a/sysdeps/unix/sysv/linux/bits/mman-linux.h b/sysdeps/unix/sysv/linux/bits/mman-linux.h index 85bc4d3c3c8..cb5ad30ef9c 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