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 _UAPI_LINUX_MMAN_H |
| 8 | #define _UAPI_LINUX_MMAN_H |
| 9 | #include <asm/mman.h> |
Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 10 | #include <asm-generic/hugetlb_encode.h> |
Christopher Ferris | 8666d04 | 2023-09-06 14:55:31 -0700 | [diff] [blame] | 11 | #include <linux/types.h> |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 12 | #define MREMAP_MAYMOVE 1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 13 | #define MREMAP_FIXED 2 |
Christopher Ferris | af09c70 | 2020-06-01 20:29:29 -0700 | [diff] [blame] | 14 | #define MREMAP_DONTUNMAP 4 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 15 | #define OVERCOMMIT_GUESS 0 |
| 16 | #define OVERCOMMIT_ALWAYS 1 |
| 17 | #define OVERCOMMIT_NEVER 2 |
Christopher Ferris | 24f97eb | 2019-05-20 12:58:13 -0700 | [diff] [blame] | 18 | #define MAP_SHARED 0x01 |
| 19 | #define MAP_PRIVATE 0x02 |
| 20 | #define MAP_SHARED_VALIDATE 0x03 |
Christopher Ferris | 63fcca4 | 2024-09-26 01:12:10 +0000 | [diff] [blame^] | 21 | #define MAP_DROPPABLE 0x08 |
Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 22 | #define MAP_HUGE_SHIFT HUGETLB_FLAG_ENCODE_SHIFT |
| 23 | #define MAP_HUGE_MASK HUGETLB_FLAG_ENCODE_MASK |
Christopher Ferris | 32ff3f8 | 2020-12-14 13:10:04 -0800 | [diff] [blame] | 24 | #define MAP_HUGE_16KB HUGETLB_FLAG_ENCODE_16KB |
Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 25 | #define MAP_HUGE_64KB HUGETLB_FLAG_ENCODE_64KB |
| 26 | #define MAP_HUGE_512KB HUGETLB_FLAG_ENCODE_512KB |
| 27 | #define MAP_HUGE_1MB HUGETLB_FLAG_ENCODE_1MB |
| 28 | #define MAP_HUGE_2MB HUGETLB_FLAG_ENCODE_2MB |
| 29 | #define MAP_HUGE_8MB HUGETLB_FLAG_ENCODE_8MB |
| 30 | #define MAP_HUGE_16MB HUGETLB_FLAG_ENCODE_16MB |
Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 31 | #define MAP_HUGE_32MB HUGETLB_FLAG_ENCODE_32MB |
Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 32 | #define MAP_HUGE_256MB HUGETLB_FLAG_ENCODE_256MB |
Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 33 | #define MAP_HUGE_512MB HUGETLB_FLAG_ENCODE_512MB |
Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 34 | #define MAP_HUGE_1GB HUGETLB_FLAG_ENCODE_1GB |
| 35 | #define MAP_HUGE_2GB HUGETLB_FLAG_ENCODE_2GB |
| 36 | #define MAP_HUGE_16GB HUGETLB_FLAG_ENCODE_16GB |
Christopher Ferris | 8666d04 | 2023-09-06 14:55:31 -0700 | [diff] [blame] | 37 | struct cachestat_range { |
| 38 | __u64 off; |
| 39 | __u64 len; |
| 40 | }; |
| 41 | struct cachestat { |
| 42 | __u64 nr_cache; |
| 43 | __u64 nr_dirty; |
| 44 | __u64 nr_writeback; |
| 45 | __u64 nr_evicted; |
| 46 | __u64 nr_recently_evicted; |
| 47 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 48 | #endif |