summaryrefslogtreecommitdiff
path: root/include/uapi/linux/mman.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2019-02-08 01:02:55 -0500
committerArnd Bergmann <arnd@arndb.de>2019-02-18 17:49:30 +0100
commit746c9398f5ac2b3f5730da4ed09e99ef4bb50b4a (patch)
treee24ae55f3269f22672b041ad1f83a5b2320305ba /include/uapi/linux/mman.h
parent852661a8691fd1f974b61eaa317d2620198f7c76 (diff)
arch: move common mmap flags to linux/mman.h
Now that we have 3 mmap flags shared by all architectures, let's move them into the common header. This will help discourage future architectures from duplicating code. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'include/uapi/linux/mman.h')
-rw-r--r--include/uapi/linux/mman.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/linux/mman.h b/include/uapi/linux/mman.h
index d0f515d53299..fc1a64c3447b 100644
--- a/include/uapi/linux/mman.h
+++ b/include/uapi/linux/mman.h
@@ -12,6 +12,10 @@
#define OVERCOMMIT_ALWAYS 1
#define OVERCOMMIT_NEVER 2
+#define MAP_SHARED 0x01 /* Share changes */
+#define MAP_PRIVATE 0x02 /* Changes are private */
+#define MAP_SHARED_VALIDATE 0x03 /* share + validate extension flags */
+
/*
* Huge page size encoding when MAP_HUGETLB is specified, and a huge page
* size other than the default is desired. See hugetlb_encode.h.