1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:38:11 +00:00

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
parent 1ad5568759
commit 487f9b373b
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