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.
This commit is contained in:
Joseph Myers 2022-06-01 14:45:48 +00:00
parent 9d03bac7e7
commit de3501d60f

View 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