diff options
| author | Michal Biesek <michalbiesek@gmail.com> | 2023-08-08 11:46:09 +0200 |
|---|---|---|
| committer | Rich Felker <dalias@aerifal.cx> | 2026-03-15 16:23:20 -0400 |
| commit | bb5693fa5e93a2cadcb82e238632714b7c71c5b6 (patch) | |
| tree | 2c379de4a8eec5aee1ca82ea52a0912978d0b33d /include | |
| parent | 9355c443116969d93c920b57b3f8f3252a912ca5 (diff) | |
| download | musl-bb5693fa5e93a2cadcb82e238632714b7c71c5b6.tar.gz | |
sys/mman.h: add MADV_POPULATE_(READ|WRITE) from linux v5.14
Add madvise flags to populate(prefault) page tables
see
linux commit 4ca9b3859dac14bbef0c27d00667bb5b10917adb
mm/madvise: introduce MADV_POPULATE_(READ|WRITE) to prefault page tables
Diffstat (limited to 'include')
| -rw-r--r-- | include/sys/mman.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sys/mman.h b/include/sys/mman.h index 3d5d0f9c..ba371539 100644 --- a/include/sys/mman.h +++ b/include/sys/mman.h @@ -95,6 +95,8 @@ extern "C" { #define MADV_KEEPONFORK 19 #define MADV_COLD 20 #define MADV_PAGEOUT 21 +#define MADV_POPULATE_READ 22 +#define MADV_POPULATE_WRITE 23 #define MADV_HWPOISON 100 #define MADV_SOFT_OFFLINE 101 #endif |
