Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is auto-generated. Modifications will be lost. |
| 3 | * |
| 4 | * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ |
| 5 | * for more information. |
| 6 | */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef __ASM_GENERIC_MMAN_COMMON_H |
| 8 | #define __ASM_GENERIC_MMAN_COMMON_H |
| 9 | #define PROT_READ 0x1 |
| 10 | #define PROT_WRITE 0x2 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 11 | #define PROT_EXEC 0x4 |
| 12 | #define PROT_SEM 0x8 |
| 13 | #define PROT_NONE 0x0 |
| 14 | #define PROT_GROWSDOWN 0x01000000 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 15 | #define PROT_GROWSUP 0x02000000 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 16 | #define MAP_TYPE 0x0f |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 17 | #define MAP_FIXED 0x10 |
| 18 | #define MAP_ANONYMOUS 0x20 |
Christopher Ferris | b8a95e2 | 2019-10-02 18:29:20 -0700 | [diff] [blame] | 19 | #define MAP_POPULATE 0x008000 |
| 20 | #define MAP_NONBLOCK 0x010000 |
| 21 | #define MAP_STACK 0x020000 |
| 22 | #define MAP_HUGETLB 0x040000 |
| 23 | #define MAP_SYNC 0x080000 |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 24 | #define MAP_FIXED_NOREPLACE 0x100000 |
Christopher Ferris | b8a95e2 | 2019-10-02 18:29:20 -0700 | [diff] [blame] | 25 | #define MAP_UNINITIALIZED 0x4000000 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 26 | #define MLOCK_ONFAULT 0x01 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 27 | #define MS_ASYNC 1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 28 | #define MS_INVALIDATE 2 |
| 29 | #define MS_SYNC 4 |
| 30 | #define MADV_NORMAL 0 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 31 | #define MADV_RANDOM 1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 32 | #define MADV_SEQUENTIAL 2 |
| 33 | #define MADV_WILLNEED 3 |
| 34 | #define MADV_DONTNEED 4 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 35 | #define MADV_FREE 8 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 36 | #define MADV_REMOVE 9 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 37 | #define MADV_DONTFORK 10 |
| 38 | #define MADV_DOFORK 11 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 39 | #define MADV_HWPOISON 100 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 40 | #define MADV_SOFT_OFFLINE 101 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 41 | #define MADV_MERGEABLE 12 |
| 42 | #define MADV_UNMERGEABLE 13 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 43 | #define MADV_HUGEPAGE 14 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 44 | #define MADV_NOHUGEPAGE 15 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 45 | #define MADV_DONTDUMP 16 |
| 46 | #define MADV_DODUMP 17 |
Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 47 | #define MADV_WIPEONFORK 18 |
| 48 | #define MADV_KEEPONFORK 19 |
Christopher Ferris | 9584fa4 | 2019-12-09 15:36:13 -0800 | [diff] [blame] | 49 | #define MADV_COLD 20 |
| 50 | #define MADV_PAGEOUT 21 |
Christopher Ferris | 3a39c0b | 2021-09-02 00:03:38 +0000 | [diff] [blame] | 51 | #define MADV_POPULATE_READ 22 |
| 52 | #define MADV_POPULATE_WRITE 23 |
Christopher Ferris | 10a76e6 | 2022-06-08 13:31:52 -0700 | [diff] [blame] | 53 | #define MADV_DONTNEED_LOCKED 24 |
Christopher Ferris | 6cd53a5 | 2022-12-12 23:39:16 +0000 | [diff] [blame] | 54 | #define MADV_COLLAPSE 25 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 55 | #define MAP_FILE 0 |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 56 | #define PKEY_DISABLE_ACCESS 0x1 |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 57 | #define PKEY_DISABLE_WRITE 0x2 |
| 58 | #define PKEY_ACCESS_MASK (PKEY_DISABLE_ACCESS | PKEY_DISABLE_WRITE) |
| 59 | #endif |