Add MADV_DONTNEED_LOCKED from Linux 5.18 to bits/mman-linux.h
Checks
Context |
Check |
Description |
dj/TryBot-apply_patch |
success
|
Patch applied to master at the time it was sent
|
dj/TryBot-32bit |
success
|
Build for i686
|
Commit Message
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.
Comments
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.
@@ -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