Kernel: Add MADV_GET_VOLATILE for checking the volatile flag

Sometimes you might want to know if a purgeable region is volatile.
This commit is contained in:
Andreas Kling 2019-12-18 20:48:24 +01:00
commit 487f9b373b
Notes: sideshowbarker 2024-07-19 10:49:14 +09:00
3 changed files with 8 additions and 0 deletions

View file

@ -36,6 +36,7 @@
#define MADV_SET_VOLATILE 0x100
#define MADV_SET_NONVOLATILE 0x200
#define MADV_GET_VOLATILE 0x400
#define F_DUPFD 0
#define F_GETFD 1