about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2019-11-28 14:54:22 +0000
committerJoseph Myers <joseph@codesourcery.com>2019-11-28 14:54:22 +0000
commitaa9452a3b19e414678062c65ff7a2133482d62c3 (patch)
treedd899736f88948b02c7e73817834309d7b918539 /sysdeps/unix/sysv/linux
parente37c2cf299b61ce18f62852f6c5624c27829b610 (diff)
downloadglibc-aa9452a3b19e414678062c65ff7a2133482d62c3.tar.gz
glibc-aa9452a3b19e414678062c65ff7a2133482d62c3.tar.xz
glibc-aa9452a3b19e414678062c65ff7a2133482d62c3.zip
Define MADV_COLD and MADV_PAGEOUT from Linux 5.4.
Linux 5.4 adds constants MADV_COLD and MADV_PAGEOUT (defined with the
same values on all architectures).  This patch adds them to
bits/mman-linux.h.

Tested for x86_64.
Diffstat (limited to 'sysdeps/unix/sysv/linux')
-rw-r--r--sysdeps/unix/sysv/linux/bits/mman-linux.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/mman-linux.h b/sysdeps/unix/sysv/linux/bits/mman-linux.h
index d6755c59d5..c0b11bfe24 100644
--- a/sysdeps/unix/sysv/linux/bits/mman-linux.h
+++ b/sysdeps/unix/sysv/linux/bits/mman-linux.h
@@ -87,6 +87,8 @@
 # define MADV_DODUMP	  17	/* Clear the MADV_DONTDUMP flag.  */
 # define MADV_WIPEONFORK  18	/* Zero memory on fork, child only.  */
 # define MADV_KEEPONFORK  19	/* Undo MADV_WIPEONFORK.  */
+# define MADV_COLD        20	/* Deactivate these pages.  */
+# define MADV_PAGEOUT     21	/* Reclaim these pages.  */
 # define MADV_HWPOISON	  100	/* Poison a page for testing.  */
 #endif