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