public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] Add MADV_DONTNEED_LOCKED from Linux 5.18 to bits/mman-linux.h
@ 2022-06-01 14:46 Joseph Myers
0 siblings, 0 replies; only message in thread
From: Joseph Myers @ 2022-06-01 14:46 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=de3501d60fac6d194954e0ccc7bd297f53442b3e
commit de3501d60fac6d194954e0ccc7bd297f53442b3e
Author: Joseph Myers <joseph@codesourcery.com>
Date: Wed Jun 1 14:45:48 2022 +0000
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:
---
sysdeps/unix/sysv/linux/bits/mman-linux.h | 2 ++
1 file changed, 2 insertions(+)
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-01 14:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-01 14:46 [glibc] Add MADV_DONTNEED_LOCKED from Linux 5.18 to bits/mman-linux.h Joseph Myers
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 read-only IMAP folder(s) and NNTP newsgroup(s).