public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: Joseph Myers <jsm28@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc] Add MADV_DONTNEED_LOCKED from Linux 5.18 to bits/mman-linux.h Date: Wed, 1 Jun 2022 14:46:21 +0000 (GMT) [thread overview] Message-ID: <20220601144621.66CEF38418B4@sourceware.org> (raw) 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
reply other threads:[~2022-06-01 14:46 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220601144621.66CEF38418B4@sourceware.org \ --to=jsm28@sourceware.org \ --cc=glibc-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).