mm: mlock: add mlock flags to enable VM_LOCKONFAULT usage
[cascardo/linux.git] / include / uapi / asm-generic / mman-common.h
index ddc3b36..a74dd84 100644 (file)
 # 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 */