public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* Add MADV_DONTNEED_LOCKED from Linux 5.18 to bits/mman-linux.h
@ 2022-05-31 20:09 Joseph Myers
  2022-06-01 10:32 ` Andreas Schwab
  0 siblings, 1 reply; 2+ messages in thread
From: Joseph Myers @ 2022-05-31 20:09 UTC (permalink / raw)
  To: libc-alpha

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 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
 

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Add MADV_DONTNEED_LOCKED from Linux 5.18 to bits/mman-linux.h
  2022-05-31 20:09 Add MADV_DONTNEED_LOCKED from Linux 5.18 to bits/mman-linux.h Joseph Myers
@ 2022-06-01 10:32 ` Andreas Schwab
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2022-06-01 10:32 UTC (permalink / raw)
  To: Joseph Myers; +Cc: libc-alpha

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.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-01 10:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-31 20:09 Add MADV_DONTNEED_LOCKED from Linux 5.18 to bits/mman-linux.h Joseph Myers
2022-06-01 10:32 ` Andreas Schwab

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).