diff options
Diffstat (limited to 'include/linux/dm-ioctl.h')
-rw-r--r-- | include/linux/dm-ioctl.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/include/linux/dm-ioctl.h b/include/linux/dm-ioctl.h index 28c2940eb30d..48e44ee2b466 100644 --- a/include/linux/dm-ioctl.h +++ b/include/linux/dm-ioctl.h | |||
@@ -113,20 +113,20 @@ struct dm_ioctl { | |||
113 | * return -ENOTTY) fill out this field, even if the | 113 | * return -ENOTTY) fill out this field, even if the |
114 | * command failed. | 114 | * command failed. |
115 | */ | 115 | */ |
116 | uint32_t version[3]; /* in/out */ | 116 | __u32 version[3]; /* in/out */ |
117 | uint32_t data_size; /* total size of data passed in | 117 | __u32 data_size; /* total size of data passed in |
118 | * including this struct */ | 118 | * including this struct */ |
119 | 119 | ||
120 | uint32_t data_start; /* offset to start of data | 120 | __u32 data_start; /* offset to start of data |
121 | * relative to start of this struct */ | 121 | * relative to start of this struct */ |
122 | 122 | ||
123 | uint32_t target_count; /* in/out */ | 123 | __u32 target_count; /* in/out */ |
124 | int32_t open_count; /* out */ | 124 | __s32 open_count; /* out */ |
125 | uint32_t flags; /* in/out */ | 125 | __u32 flags; /* in/out */ |
126 | uint32_t event_nr; /* in/out */ | 126 | __u32 event_nr; /* in/out */ |
127 | uint32_t padding; | 127 | __u32 padding; |
128 | 128 | ||
129 | uint64_t dev; /* in/out */ | 129 | __u64 dev; /* in/out */ |
130 | 130 | ||
131 | char name[DM_NAME_LEN]; /* device name */ | 131 | char name[DM_NAME_LEN]; /* device name */ |
132 | char uuid[DM_UUID_LEN]; /* unique identifier for | 132 | char uuid[DM_UUID_LEN]; /* unique identifier for |
@@ -139,9 +139,9 @@ struct dm_ioctl { | |||
139 | * dm_ioctl. | 139 | * dm_ioctl. |
140 | */ | 140 | */ |
141 | struct dm_target_spec { | 141 | struct dm_target_spec { |
142 | uint64_t sector_start; | 142 | __u64 sector_start; |
143 | uint64_t length; | 143 | __u64 length; |
144 | int32_t status; /* used when reading from kernel only */ | 144 | __s32 status; /* used when reading from kernel only */ |
145 | 145 | ||
146 | /* | 146 | /* |
147 | * Location of the next dm_target_spec. | 147 | * Location of the next dm_target_spec. |
@@ -153,7 +153,7 @@ struct dm_target_spec { | |||
153 | * (that follows the dm_ioctl struct) to the start of the "next" | 153 | * (that follows the dm_ioctl struct) to the start of the "next" |
154 | * dm_target_spec. | 154 | * dm_target_spec. |
155 | */ | 155 | */ |
156 | uint32_t next; | 156 | __u32 next; |
157 | 157 | ||
158 | char target_type[DM_MAX_TYPE_NAME]; | 158 | char target_type[DM_MAX_TYPE_NAME]; |
159 | 159 | ||
@@ -168,17 +168,17 @@ struct dm_target_spec { | |||
168 | * Used to retrieve the target dependencies. | 168 | * Used to retrieve the target dependencies. |
169 | */ | 169 | */ |
170 | struct dm_target_deps { | 170 | struct dm_target_deps { |
171 | uint32_t count; /* Array size */ | 171 | __u32 count; /* Array size */ |
172 | uint32_t padding; /* unused */ | 172 | __u32 padding; /* unused */ |
173 | uint64_t dev[0]; /* out */ | 173 | __u64 dev[0]; /* out */ |
174 | }; | 174 | }; |
175 | 175 | ||
176 | /* | 176 | /* |
177 | * Used to get a list of all dm devices. | 177 | * Used to get a list of all dm devices. |
178 | */ | 178 | */ |
179 | struct dm_name_list { | 179 | struct dm_name_list { |
180 | uint64_t dev; | 180 | __u64 dev; |
181 | uint32_t next; /* offset to the next record from | 181 | __u32 next; /* offset to the next record from |
182 | the _start_ of this */ | 182 | the _start_ of this */ |
183 | char name[0]; | 183 | char name[0]; |
184 | }; | 184 | }; |
@@ -187,8 +187,8 @@ struct dm_name_list { | |||
187 | * Used to retrieve the target versions | 187 | * Used to retrieve the target versions |
188 | */ | 188 | */ |
189 | struct dm_target_versions { | 189 | struct dm_target_versions { |
190 | uint32_t next; | 190 | __u32 next; |
191 | uint32_t version[3]; | 191 | __u32 version[3]; |
192 | 192 | ||
193 | char name[0]; | 193 | char name[0]; |
194 | }; | 194 | }; |
@@ -197,7 +197,7 @@ struct dm_target_versions { | |||
197 | * Used to pass message to a target | 197 | * Used to pass message to a target |
198 | */ | 198 | */ |
199 | struct dm_target_msg { | 199 | struct dm_target_msg { |
200 | uint64_t sector; /* Device sector */ | 200 | __u64 sector; /* Device sector */ |
201 | 201 | ||
202 | char message[0]; | 202 | char message[0]; |
203 | }; | 203 | }; |