summaryrefslogtreecommitdiffstats
path: root/kernel/include/uapi/asm-generic/mman-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/uapi/asm-generic/mman-common.h')
-rw-r--r--kernel/include/uapi/asm-generic/mman-common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/include/uapi/asm-generic/mman-common.h b/kernel/include/uapi/asm-generic/mman-common.h
index ddc3b36f1..a74dd84bb 100644
--- a/kernel/include/uapi/asm-generic/mman-common.h
+++ b/kernel/include/uapi/asm-generic/mman-common.h
@@ -25,6 +25,11 @@
# define MAP_UNINITIALIZED 0x0 /* Don't support this flag */
#endif
+/*
+ * Flags for mlock
+ */
+#define MLOCK_ONFAULT 0x01 /* Lock pages in range after they are faulted in, do not prefault */
+
#define MS_ASYNC 1 /* sync memory asynchronously */
#define MS_INVALIDATE 2 /* invalidate the caches */
#define MS_SYNC 4 /* synchronous memory sync */