1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef _LINUX_DM_IOCTL_V4_H 20 #define _LINUX_DM_IOCTL_V4_H 21 #include <linux/types.h> 22 #define DM_DIR "mapper" 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 #define DM_CONTROL_NODE "control" 25 #define DM_MAX_TYPE_NAME 16 26 #define DM_NAME_LEN 128 27 #define DM_UUID_LEN 129 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 struct dm_ioctl { 30 __u32 version[3]; 31 __u32 data_size; 32 __u32 data_start; 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 __u32 target_count; 35 __s32 open_count; 36 __u32 flags; 37 __u32 event_nr; 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 __u32 padding; 40 __u64 dev; 41 char name[DM_NAME_LEN]; 42 char uuid[DM_UUID_LEN]; 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 char data[7]; 45 }; 46 struct dm_target_spec { 47 __u64 sector_start; 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 __u64 length; 50 __s32 status; 51 __u32 next; 52 char target_type[DM_MAX_TYPE_NAME]; 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 }; 55 struct dm_target_deps { 56 __u32 count; 57 __u32 padding; 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 __u64 dev[0]; 60 }; 61 struct dm_name_list { 62 __u64 dev; 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 __u32 next; 65 char name[0]; 66 }; 67 struct dm_target_versions { 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 __u32 next; 70 __u32 version[3]; 71 char name[0]; 72 }; 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 struct dm_target_msg { 75 __u64 sector; 76 char message[0]; 77 }; 78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 enum { 80 DM_VERSION_CMD = 0, 81 DM_REMOVE_ALL_CMD, 82 DM_LIST_DEVICES_CMD, 83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 DM_DEV_CREATE_CMD, 85 DM_DEV_REMOVE_CMD, 86 DM_DEV_RENAME_CMD, 87 DM_DEV_SUSPEND_CMD, 88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 DM_DEV_STATUS_CMD, 90 DM_DEV_WAIT_CMD, 91 DM_TABLE_LOAD_CMD, 92 DM_TABLE_CLEAR_CMD, 93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 DM_TABLE_DEPS_CMD, 95 DM_TABLE_STATUS_CMD, 96 DM_LIST_VERSIONS_CMD, 97 DM_TARGET_MSG_CMD, 98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99 DM_DEV_SET_GEOMETRY_CMD 100 }; 101 #define DM_IOCTL 0xfd 102 #define DM_VERSION _IOWR(DM_IOCTL, DM_VERSION_CMD, struct dm_ioctl) 103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104 #define DM_REMOVE_ALL _IOWR(DM_IOCTL, DM_REMOVE_ALL_CMD, struct dm_ioctl) 105 #define DM_LIST_DEVICES _IOWR(DM_IOCTL, DM_LIST_DEVICES_CMD, struct dm_ioctl) 106 #define DM_DEV_CREATE _IOWR(DM_IOCTL, DM_DEV_CREATE_CMD, struct dm_ioctl) 107 #define DM_DEV_REMOVE _IOWR(DM_IOCTL, DM_DEV_REMOVE_CMD, struct dm_ioctl) 108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109 #define DM_DEV_RENAME _IOWR(DM_IOCTL, DM_DEV_RENAME_CMD, struct dm_ioctl) 110 #define DM_DEV_SUSPEND _IOWR(DM_IOCTL, DM_DEV_SUSPEND_CMD, struct dm_ioctl) 111 #define DM_DEV_STATUS _IOWR(DM_IOCTL, DM_DEV_STATUS_CMD, struct dm_ioctl) 112 #define DM_DEV_WAIT _IOWR(DM_IOCTL, DM_DEV_WAIT_CMD, struct dm_ioctl) 113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 114 #define DM_TABLE_LOAD _IOWR(DM_IOCTL, DM_TABLE_LOAD_CMD, struct dm_ioctl) 115 #define DM_TABLE_CLEAR _IOWR(DM_IOCTL, DM_TABLE_CLEAR_CMD, struct dm_ioctl) 116 #define DM_TABLE_DEPS _IOWR(DM_IOCTL, DM_TABLE_DEPS_CMD, struct dm_ioctl) 117 #define DM_TABLE_STATUS _IOWR(DM_IOCTL, DM_TABLE_STATUS_CMD, struct dm_ioctl) 118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 119 #define DM_LIST_VERSIONS _IOWR(DM_IOCTL, DM_LIST_VERSIONS_CMD, struct dm_ioctl) 120 #define DM_TARGET_MSG _IOWR(DM_IOCTL, DM_TARGET_MSG_CMD, struct dm_ioctl) 121 #define DM_DEV_SET_GEOMETRY _IOWR(DM_IOCTL, DM_DEV_SET_GEOMETRY_CMD, struct dm_ioctl) 122 #define DM_VERSION_MAJOR 4 123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 124 #define DM_VERSION_MINOR 34 125 #define DM_VERSION_PATCHLEVEL 0 126 #define DM_VERSION_EXTRA "-ioctl(2015-10-28)" 127 #define DM_READONLY_FLAG (1 << 0) 128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 129 #define DM_SUSPEND_FLAG (1 << 1) 130 #define DM_PERSISTENT_DEV_FLAG (1 << 3) 131 #define DM_STATUS_TABLE_FLAG (1 << 4) 132 #define DM_ACTIVE_PRESENT_FLAG (1 << 5) 133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 134 #define DM_INACTIVE_PRESENT_FLAG (1 << 6) 135 #define DM_BUFFER_FULL_FLAG (1 << 8) 136 #define DM_SKIP_BDGET_FLAG (1 << 9) 137 #define DM_SKIP_LOCKFS_FLAG (1 << 10) 138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 139 #define DM_NOFLUSH_FLAG (1 << 11) 140 #define DM_QUERY_INACTIVE_TABLE_FLAG (1 << 12) 141 #define DM_UEVENT_GENERATED_FLAG (1 << 13) 142 #define DM_UUID_FLAG (1 << 14) 143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 144 #define DM_SECURE_DATA_FLAG (1 << 15) 145 #define DM_DATA_OUT_FLAG (1 << 16) 146 #define DM_DEFERRED_REMOVE (1 << 17) 147 #define DM_INTERNAL_SUSPEND_FLAG (1 << 18) 148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 149 #endif 150