2017-11-01 21:08:43 +07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
2009-05-14 05:56:27 +07:00
|
|
|
#ifndef __ASM_GENERIC_MMAN_H
|
|
|
|
#define __ASM_GENERIC_MMAN_H
|
|
|
|
|
|
|
|
#include <asm-generic/mman-common.h>
|
|
|
|
|
|
|
|
#define MAP_GROWSDOWN 0x0100 /* stack-like segment */
|
|
|
|
#define MAP_DENYWRITE 0x0800 /* ETXTBSY */
|
|
|
|
#define MAP_EXECUTABLE 0x1000 /* mark it as an executable */
|
|
|
|
#define MAP_LOCKED 0x2000 /* pages are locked */
|
|
|
|
#define MAP_NORESERVE 0x4000 /* don't check for reservations */
|
|
|
|
|
2019-07-17 06:30:41 +07:00
|
|
|
/*
|
|
|
|
* Bits [26:31] are reserved, see asm-generic/hugetlb_encode.h
|
|
|
|
* for MAP_HUGETLB usage
|
|
|
|
*/
|
2012-12-12 07:01:34 +07:00
|
|
|
|
2009-05-14 05:56:27 +07:00
|
|
|
#define MCL_CURRENT 1 /* lock all current mappings */
|
|
|
|
#define MCL_FUTURE 2 /* lock all future mappings */
|
2015-11-06 09:51:39 +07:00
|
|
|
#define MCL_ONFAULT 4 /* lock all pages that are faulted in */
|
2009-05-14 05:56:27 +07:00
|
|
|
|
|
|
|
#endif /* __ASM_GENERIC_MMAN_H */
|