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_FS_H |
| 8 | #define _UAPI_LINUX_FS_H |
| 9 | #include <linux/limits.h> |
| 10 | #include <linux/ioctl.h> |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 11 | #include <linux/types.h> |
Christopher Ferris | 9584fa4 | 2019-12-09 15:36:13 -0800 | [diff] [blame] | 12 | #include <linux/fscrypt.h> |
Christopher Ferris | d842e43 | 2019-03-07 10:21:59 -0800 | [diff] [blame] | 13 | #include <linux/mount.h> |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 14 | #undef NR_OPEN |
| 15 | #define INR_OPEN_CUR 1024 |
| 16 | #define INR_OPEN_MAX 4096 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 17 | #define BLOCK_SIZE_BITS 10 |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 18 | #define BLOCK_SIZE (1 << BLOCK_SIZE_BITS) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 19 | #define SEEK_SET 0 |
| 20 | #define SEEK_CUR 1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 21 | #define SEEK_END 2 |
| 22 | #define SEEK_DATA 3 |
| 23 | #define SEEK_HOLE 4 |
| 24 | #define SEEK_MAX SEEK_HOLE |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 25 | #define RENAME_NOREPLACE (1 << 0) |
| 26 | #define RENAME_EXCHANGE (1 << 1) |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 27 | #define RENAME_WHITEOUT (1 << 2) |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 28 | struct file_clone_range { |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 29 | __s64 src_fd; |
| 30 | __u64 src_offset; |
| 31 | __u64 src_length; |
| 32 | __u64 dest_offset; |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 33 | }; |
| 34 | struct fstrim_range { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 35 | __u64 start; |
| 36 | __u64 len; |
| 37 | __u64 minlen; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 38 | }; |
Christopher Ferris | 7f4c837 | 2024-06-03 14:22:19 -0700 | [diff] [blame] | 39 | struct fsuuid2 { |
| 40 | __u8 len; |
| 41 | __u8 uuid[16]; |
| 42 | }; |
| 43 | struct fs_sysfs_path { |
| 44 | __u8 len; |
| 45 | __u8 name[128]; |
| 46 | }; |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 47 | #define FILE_DEDUPE_RANGE_SAME 0 |
| 48 | #define FILE_DEDUPE_RANGE_DIFFERS 1 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 49 | struct file_dedupe_range_info { |
| 50 | __s64 dest_fd; |
| 51 | __u64 dest_offset; |
| 52 | __u64 bytes_deduped; |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 53 | __s32 status; |
| 54 | __u32 reserved; |
| 55 | }; |
| 56 | struct file_dedupe_range { |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 57 | __u64 src_offset; |
| 58 | __u64 src_length; |
| 59 | __u16 dest_count; |
| 60 | __u16 reserved1; |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 61 | __u32 reserved2; |
Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 62 | struct file_dedupe_range_info info[]; |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 63 | }; |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 64 | struct files_stat_struct { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 65 | unsigned long nr_files; |
| 66 | unsigned long nr_free_files; |
| 67 | unsigned long max_files; |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 68 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 69 | struct inodes_stat_t { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 70 | long nr_inodes; |
| 71 | long nr_unused; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 72 | long dummy[5]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 73 | }; |
| 74 | #define NR_FILE 8192 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 75 | struct fsxattr { |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 76 | __u32 fsx_xflags; |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 77 | __u32 fsx_extsize; |
| 78 | __u32 fsx_nextents; |
| 79 | __u32 fsx_projid; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 80 | __u32 fsx_cowextsize; |
| 81 | unsigned char fsx_pad[8]; |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 82 | }; |
| 83 | #define FS_XFLAG_REALTIME 0x00000001 |
| 84 | #define FS_XFLAG_PREALLOC 0x00000002 |
| 85 | #define FS_XFLAG_IMMUTABLE 0x00000008 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 86 | #define FS_XFLAG_APPEND 0x00000010 |
| 87 | #define FS_XFLAG_SYNC 0x00000020 |
| 88 | #define FS_XFLAG_NOATIME 0x00000040 |
| 89 | #define FS_XFLAG_NODUMP 0x00000080 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 90 | #define FS_XFLAG_RTINHERIT 0x00000100 |
| 91 | #define FS_XFLAG_PROJINHERIT 0x00000200 |
| 92 | #define FS_XFLAG_NOSYMLINKS 0x00000400 |
| 93 | #define FS_XFLAG_EXTSIZE 0x00000800 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 94 | #define FS_XFLAG_EXTSZINHERIT 0x00001000 |
| 95 | #define FS_XFLAG_NODEFRAG 0x00002000 |
| 96 | #define FS_XFLAG_FILESTREAM 0x00004000 |
| 97 | #define FS_XFLAG_DAX 0x00008000 |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 98 | #define FS_XFLAG_COWEXTSIZE 0x00010000 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 99 | #define FS_XFLAG_HASATTR 0x80000000 |
| 100 | #define BLKROSET _IO(0x12, 93) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 101 | #define BLKROGET _IO(0x12, 94) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 102 | #define BLKRRPART _IO(0x12, 95) |
| 103 | #define BLKGETSIZE _IO(0x12, 96) |
| 104 | #define BLKFLSBUF _IO(0x12, 97) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 105 | #define BLKRASET _IO(0x12, 98) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 106 | #define BLKRAGET _IO(0x12, 99) |
| 107 | #define BLKFRASET _IO(0x12, 100) |
| 108 | #define BLKFRAGET _IO(0x12, 101) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 109 | #define BLKSECTSET _IO(0x12, 102) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 110 | #define BLKSECTGET _IO(0x12, 103) |
| 111 | #define BLKSSZGET _IO(0x12, 104) |
| 112 | #define BLKBSZGET _IOR(0x12, 112, size_t) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 113 | #define BLKBSZSET _IOW(0x12, 113, size_t) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 114 | #define BLKGETSIZE64 _IOR(0x12, 114, size_t) |
| 115 | #define BLKTRACESETUP _IOWR(0x12, 115, struct blk_user_trace_setup) |
| 116 | #define BLKTRACESTART _IO(0x12, 116) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 117 | #define BLKTRACESTOP _IO(0x12, 117) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 118 | #define BLKTRACETEARDOWN _IO(0x12, 118) |
| 119 | #define BLKDISCARD _IO(0x12, 119) |
| 120 | #define BLKIOMIN _IO(0x12, 120) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 121 | #define BLKIOOPT _IO(0x12, 121) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 122 | #define BLKALIGNOFF _IO(0x12, 122) |
| 123 | #define BLKPBSZGET _IO(0x12, 123) |
| 124 | #define BLKDISCARDZEROES _IO(0x12, 124) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 125 | #define BLKSECDISCARD _IO(0x12, 125) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 126 | #define BLKROTATIONAL _IO(0x12, 126) |
| 127 | #define BLKZEROOUT _IO(0x12, 127) |
Christopher Ferris | 2abfa9e | 2021-11-01 16:26:06 -0700 | [diff] [blame] | 128 | #define BLKGETDISKSEQ _IOR(0x12, 128, __u64) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 129 | #define BMAP_IOCTL 1 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 130 | #define FIBMAP _IO(0x00, 1) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 131 | #define FIGETBSZ _IO(0x00, 2) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 132 | #define FIFREEZE _IOWR('X', 119, int) |
| 133 | #define FITHAW _IOWR('X', 120, int) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 134 | #define FITRIM _IOWR('X', 121, struct fstrim_range) |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 135 | #define FICLONE _IOW(0x94, 9, int) |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 136 | #define FICLONERANGE _IOW(0x94, 13, struct file_clone_range) |
| 137 | #define FIDEDUPERANGE _IOWR(0x94, 54, struct file_dedupe_range) |
Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 138 | #define FSLABEL_MAX 256 |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 139 | #define FS_IOC_GETFLAGS _IOR('f', 1, long) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 140 | #define FS_IOC_SETFLAGS _IOW('f', 2, long) |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 141 | #define FS_IOC_GETVERSION _IOR('v', 1, long) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 142 | #define FS_IOC_SETVERSION _IOW('v', 2, long) |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 143 | #define FS_IOC_FIEMAP _IOWR('f', 11, struct fiemap) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 144 | #define FS_IOC32_GETFLAGS _IOR('f', 1, int) |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 145 | #define FS_IOC32_SETFLAGS _IOW('f', 2, int) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 146 | #define FS_IOC32_GETVERSION _IOR('v', 1, int) |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 147 | #define FS_IOC32_SETVERSION _IOW('v', 2, int) |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 148 | #define FS_IOC_FSGETXATTR _IOR('X', 31, struct fsxattr) |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 149 | #define FS_IOC_FSSETXATTR _IOW('X', 32, struct fsxattr) |
Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 150 | #define FS_IOC_GETFSLABEL _IOR(0x94, 49, char[FSLABEL_MAX]) |
| 151 | #define FS_IOC_SETFSLABEL _IOW(0x94, 50, char[FSLABEL_MAX]) |
Christopher Ferris | 7f4c837 | 2024-06-03 14:22:19 -0700 | [diff] [blame] | 152 | #define FS_IOC_GETFSUUID _IOR(0x15, 0, struct fsuuid2) |
| 153 | #define FS_IOC_GETFSSYSFSPATH _IOR(0x15, 1, struct fs_sysfs_path) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 154 | #define FS_SECRM_FL 0x00000001 |
| 155 | #define FS_UNRM_FL 0x00000002 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 156 | #define FS_COMPR_FL 0x00000004 |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 157 | #define FS_SYNC_FL 0x00000008 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 158 | #define FS_IMMUTABLE_FL 0x00000010 |
| 159 | #define FS_APPEND_FL 0x00000020 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 160 | #define FS_NODUMP_FL 0x00000040 |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 161 | #define FS_NOATIME_FL 0x00000080 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 162 | #define FS_DIRTY_FL 0x00000100 |
| 163 | #define FS_COMPRBLK_FL 0x00000200 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 164 | #define FS_NOCOMP_FL 0x00000400 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 165 | #define FS_ENCRYPT_FL 0x00000800 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 166 | #define FS_BTREE_FL 0x00001000 |
| 167 | #define FS_INDEX_FL 0x00001000 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 168 | #define FS_IMAGIC_FL 0x00002000 |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 169 | #define FS_JOURNAL_DATA_FL 0x00004000 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 170 | #define FS_NOTAIL_FL 0x00008000 |
| 171 | #define FS_DIRSYNC_FL 0x00010000 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 172 | #define FS_TOPDIR_FL 0x00020000 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 173 | #define FS_HUGE_FILE_FL 0x00040000 |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 174 | #define FS_EXTENT_FL 0x00080000 |
Christopher Ferris | 9584fa4 | 2019-12-09 15:36:13 -0800 | [diff] [blame] | 175 | #define FS_VERITY_FL 0x00100000 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 176 | #define FS_EA_INODE_FL 0x00200000 |
| 177 | #define FS_EOFBLOCKS_FL 0x00400000 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 178 | #define FS_NOCOW_FL 0x00800000 |
Christopher Ferris | 8177cdf | 2020-08-03 11:53:55 -0700 | [diff] [blame] | 179 | #define FS_DAX_FL 0x02000000 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 180 | #define FS_INLINE_DATA_FL 0x10000000 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 181 | #define FS_PROJINHERIT_FL 0x20000000 |
Christopher Ferris | 9584fa4 | 2019-12-09 15:36:13 -0800 | [diff] [blame] | 182 | #define FS_CASEFOLD_FL 0x40000000 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 183 | #define FS_RESERVED_FL 0x80000000 |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 184 | #define FS_FL_USER_VISIBLE 0x0003DFFF |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 185 | #define FS_FL_USER_MODIFIABLE 0x000380FF |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 186 | #define SYNC_FILE_RANGE_WAIT_BEFORE 1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 187 | #define SYNC_FILE_RANGE_WRITE 2 |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 188 | #define SYNC_FILE_RANGE_WAIT_AFTER 4 |
Christopher Ferris | aeddbcf | 2019-07-08 12:45:46 -0700 | [diff] [blame] | 189 | #define SYNC_FILE_RANGE_WRITE_AND_WAIT (SYNC_FILE_RANGE_WRITE | SYNC_FILE_RANGE_WAIT_BEFORE | SYNC_FILE_RANGE_WAIT_AFTER) |
Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 190 | typedef int __bitwise __kernel_rwf_t; |
Elliott Hughes | 0f0c18f | 2023-03-29 15:53:31 -0700 | [diff] [blame] | 191 | #define RWF_HIPRI (( __kernel_rwf_t) 0x00000001) |
| 192 | #define RWF_DSYNC (( __kernel_rwf_t) 0x00000002) |
| 193 | #define RWF_SYNC (( __kernel_rwf_t) 0x00000004) |
| 194 | #define RWF_NOWAIT (( __kernel_rwf_t) 0x00000008) |
| 195 | #define RWF_APPEND (( __kernel_rwf_t) 0x00000010) |
Christopher Ferris | 7f4c837 | 2024-06-03 14:22:19 -0700 | [diff] [blame] | 196 | #define RWF_NOAPPEND (( __kernel_rwf_t) 0x00000020) |
Priyanka Advani (xWF) | a805034 | 2024-09-25 19:07:32 +0000 | [diff] [blame] | 197 | #define RWF_SUPPORTED (RWF_HIPRI | RWF_DSYNC | RWF_SYNC | RWF_NOWAIT | RWF_APPEND | RWF_NOAPPEND) |
| 198 | #define PAGEMAP_SCAN _IOWR('f', 16, struct pm_scan_arg) |
Christopher Ferris | 0f79521 | 2024-01-17 14:17:28 -0800 | [diff] [blame] | 199 | #define PAGE_IS_WPALLOWED (1 << 0) |
| 200 | #define PAGE_IS_WRITTEN (1 << 1) |
| 201 | #define PAGE_IS_FILE (1 << 2) |
| 202 | #define PAGE_IS_PRESENT (1 << 3) |
| 203 | #define PAGE_IS_SWAPPED (1 << 4) |
| 204 | #define PAGE_IS_PFNZERO (1 << 5) |
| 205 | #define PAGE_IS_HUGE (1 << 6) |
Christopher Ferris | b830ddf | 2024-03-28 11:48:08 -0700 | [diff] [blame] | 206 | #define PAGE_IS_SOFT_DIRTY (1 << 7) |
Christopher Ferris | 0f79521 | 2024-01-17 14:17:28 -0800 | [diff] [blame] | 207 | struct page_region { |
| 208 | __u64 start; |
| 209 | __u64 end; |
| 210 | __u64 categories; |
| 211 | }; |
| 212 | #define PM_SCAN_WP_MATCHING (1 << 0) |
| 213 | #define PM_SCAN_CHECK_WPASYNC (1 << 1) |
| 214 | struct pm_scan_arg { |
| 215 | __u64 size; |
| 216 | __u64 flags; |
| 217 | __u64 start; |
| 218 | __u64 end; |
| 219 | __u64 walk_end; |
| 220 | __u64 vec; |
| 221 | __u64 vec_len; |
| 222 | __u64 max_pages; |
| 223 | __u64 category_inverted; |
| 224 | __u64 category_mask; |
| 225 | __u64 category_anyof_mask; |
| 226 | __u64 return_mask; |
| 227 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 228 | #endif |