16f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 28a1ab315SDavid Howells #ifndef __ASM_GENERIC_MMAN_H 38a1ab315SDavid Howells #define __ASM_GENERIC_MMAN_H 48a1ab315SDavid Howells 58a1ab315SDavid Howells #include <asm-generic/mman-common.h> 68a1ab315SDavid Howells 78a1ab315SDavid Howells #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ 88a1ab315SDavid Howells #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ 98a1ab315SDavid Howells #define MAP_EXECUTABLE 0x1000 /* mark it as an executable */ 108a1ab315SDavid Howells #define MAP_LOCKED 0x2000 /* pages are locked */ 118a1ab315SDavid Howells #define MAP_NORESERVE 0x4000 /* don't check for reservations */ 128a1ab315SDavid Howells 138aa3c927SAneesh Kumar K.V /* 148aa3c927SAneesh Kumar K.V * Bits [26:31] are reserved, see asm-generic/hugetlb_encode.h 158aa3c927SAneesh Kumar K.V * for MAP_HUGETLB usage 168aa3c927SAneesh Kumar K.V */ 1742d7395fSAndi Kleen 188a1ab315SDavid Howells #define MCL_CURRENT 1 /* lock all current mappings */ 198a1ab315SDavid Howells #define MCL_FUTURE 2 /* lock all future mappings */ 20b0f205c2SEric B Munson #define MCL_ONFAULT 4 /* lock all pages that are faulted in */ 218a1ab315SDavid Howells 228a1ab315SDavid Howells #endif /* __ASM_GENERIC_MMAN_H */ 23