sys/mman.h: add MADV_DONTNEED_LOCKED from linux v6.0

this flag works like MADV_DONTNEED but also applies to locked memory
ranges.

see
  linux commit 9457056ac426e5ed0671356509c8dcce69f8dee0
  mm: madvise: MADV_DONTNEED_LOCKED
This commit is contained in:
Rich Felker
2026-03-19 09:56:42 -04:00
parent bb5693fa5e
commit 56df2e1fc1
+1
View File
@@ -97,6 +97,7 @@ extern "C" {
#define MADV_PAGEOUT 21
#define MADV_POPULATE_READ 22
#define MADV_POPULATE_WRITE 23
#define MADV_DONTNEED_LOCKED 24
#define MADV_HWPOISON 100
#define MADV_SOFT_OFFLINE 101
#endif