1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* *
* This file is part of HDF5. The full HDF5 copyright notice, including *
* terms governing use, modification, and redistribution, is contained in *
* the files COPYING and Copyright.html. COPYING can be found at the root *
* of the source code distribution tree; Copyright.html can be found at the *
* root level of an installed copy of the electronic HDF5 document set and *
* is linked from the top-level documents page. It can also be found at *
* http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have *
* access to either file, you may request a copy from help@hdfgroup.org. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*
* This file contains private information about the H5VL module
*/
#ifndef _H5VLiod_common_H
#define _H5VLiod_common_H
#include "H5public.h"
#include "H5FFpublic.h"
#include "H5VLpublic.h"
#include "H5VLiod.h" /* Iod VOL plugin */
#ifdef H5_HAVE_EFF
#define NA_UNDEFINED NULL
#define IOD_OH_UNDEFINED (pow(2.0,64.0) - 1)
#define IOD_ID_UNDEFINED (pow(2.0,64.0) - 1)
#define IOD_COUNT_UNDEFINED (pow(2.0,64.0) - 1)
#define H5VL_IOD_DEBUG 1
typedef enum H5VL_iod_state_t {
H5VL_IOD_PENDING,
H5VL_IOD_COMPLETED,
H5VL_IOD_CANCELLED
} H5VL_iod_state_t;
typedef struct H5VL_iod_read_status_t {
int ret;
uint32_t cs;
size_t buf_size;
} H5VL_iod_read_status_t;
typedef struct dims_t {
int rank;
hsize_t *size;
} dims_t;
typedef struct name_t {
size_t size;
ssize_t *value_size;
char *value;
} name_t;
typedef struct binary_buf_t {
size_t buf_size;
void *buf;
} binary_buf_t;
typedef struct value_t {
size_t val_size;
void *val;
} value_t;
typedef struct axe_t {
AXE_task_t axe_id;
AXE_task_t start_range;
size_t count;
size_t num_parents;
AXE_task_t *parent_axe_ids;
} axe_t;
H5_DLL int hg_proc_ret_t(hg_proc_t proc, void *data);
H5_DLL int hg_proc_axe_t(hg_proc_t proc, void *data);
H5_DLL int hg_proc_size_t(hg_proc_t proc, void *data);
H5_DLL int hg_proc_hid_t(hg_proc_t proc, void *data);
H5_DLL int hg_proc_htri_t(hg_proc_t proc, void *data);
H5_DLL int hg_proc_hbool_t(hg_proc_t proc, void *data);
H5_DLL int hg_proc_iod_obj_id_t(hg_proc_t proc, void *data);
H5_DLL int hg_proc_iod_handle_t(hg_proc_t proc, void *data);
H5_DLL int hg_proc_dims_t(hg_proc_t proc, void *data);
H5_DLL int hg_proc_axe_ids_t(hg_proc_t proc, void *data);
H5_DLL int hg_proc_name_t(hg_proc_t proc, void *data);
H5_DLL int hg_proc_value_t(hg_proc_t proc, void *data);
H5_DLL int hg_proc_binary_buf_t(hg_proc_t proc, void *data);
H5_DLL int hg_proc_linfo_t(hg_proc_t proc, void *data);
H5_DLL int hg_proc_oinfo_t(hg_proc_t proc, void *data);
MERCURY_GEN_PROC(eff_init_in_t, ((uint32_t)(proc_num)))
MERCURY_GEN_PROC(file_create_in_t, ((axe_t)(axe_info))
((hg_string_t)(name)) ((uint32_t)(flags))
((iod_obj_id_t)(root_id))
((hid_t)(fapl_id)) ((hid_t)(fcpl_id)))
MERCURY_GEN_PROC(file_create_out_t, ((iod_handle_t)(coh)) ((iod_handle_t)(root_oh))
((uint64_t)(kv_oid_index)) ((uint64_t)(array_oid_index))
((uint64_t)(blob_oid_index)))
MERCURY_GEN_PROC(file_open_in_t, ((axe_t)(axe_info))
((hg_string_t)(name)) ((uint32_t)(flags))
((hid_t)(fapl_id)))
MERCURY_GEN_PROC(file_open_out_t, ((iod_handle_t)(coh)) ((iod_handle_t)(root_oh))
((uint64_t)(kv_oid_index)) ((uint64_t)(array_oid_index))
((uint64_t)(blob_oid_index))
((iod_obj_id_t)(root_id)) ((hid_t)(fcpl_id)))
MERCURY_GEN_PROC(file_flush_in_t, ((axe_t)(axe_info))
((iod_handle_t)(coh)) ((int32_t)(scope)))
MERCURY_GEN_PROC(file_close_in_t, ((axe_t)(axe_info))
((iod_handle_t)(coh)) ((iod_handle_t)(root_oh))
((iod_obj_id_t)(root_id)))
MERCURY_GEN_PROC(attr_create_in_t, ((axe_t)(axe_info))
((iod_handle_t)(coh)) ((iod_handle_t)(loc_oh))
((iod_obj_id_t)(loc_id)) ((iod_obj_id_t)(attr_id))
((hg_string_t)(path))
((hg_string_t)(attr_name)) ((hid_t)(acpl_id))
((hid_t)(type_id)) ((hid_t)(space_id)))
MERCURY_GEN_PROC(attr_create_out_t, ((iod_handle_t)(iod_oh)))
MERCURY_GEN_PROC(attr_open_in_t, ((axe_t)(axe_info))
((iod_handle_t)(coh)) ((iod_handle_t)(loc_oh))
((iod_obj_id_t)(loc_id)) ((hg_string_t)(path))
((hg_string_t)(attr_name)))
MERCURY_GEN_PROC(attr_open_out_t, ((iod_handle_t)(iod_oh)) ((iod_obj_id_t)(iod_id))
((hid_t)(acpl_id)) ((hid_t)(type_id)) ((hid_t)(space_id)))
MERCURY_GEN_PROC(attr_op_in_t, ((axe_t)(axe_info))
((iod_handle_t)(coh)) ((iod_handle_t)(loc_oh))
((iod_obj_id_t)(loc_id))
((hg_string_t)(path)) ((hg_string_t)(attr_name)))
MERCURY_GEN_PROC(attr_rename_in_t, ((axe_t)(axe_info))
((iod_handle_t)(coh)) ((iod_handle_t)(loc_oh))
((iod_obj_id_t)(loc_id))
((hg_string_t)(path)) ((hg_string_t)(old_attr_name))
((hg_string_t)(new_attr_name)))
MERCURY_GEN_PROC(attr_io_in_t, ((axe_t)(axe_info))
((iod_handle_t)(coh)) ((iod_handle_t)(iod_oh))
((iod_obj_id_t)(iod_id))
((hid_t)(type_id)) ((hg_bulk_t)(bulk_handle)))
MERCURY_GEN_PROC(attr_close_in_t, ((axe_t)(axe_info))
((iod_handle_t)(iod_oh)) ((iod_obj_id_t)(iod_id)))
MERCURY_GEN_PROC(group_create_in_t, ((axe_t)(axe_info))
((iod_handle_t)(coh)) ((iod_handle_t)(loc_oh))
((iod_obj_id_t)(loc_id)) ((iod_obj_id_t)(grp_id))
((hg_string_t)(name)) ((hid_t)(gapl_id))
((hid_t)(gcpl_id)) ((hid_t)(lcpl_id)))
MERCURY_GEN_PROC(group_create_out_t, ((iod_handle_t)(iod_oh)))
MERCURY_GEN_PROC(group_open_in_t, ((axe_t)(axe_info))
((iod_handle_t)(coh)) ((iod_handle_t)(loc_oh))
((iod_obj_id_t)(loc_id)) ((hg_string_t)(name))
((hid_t)(gapl_id)))
MERCURY_GEN_PROC(group_open_out_t, ((iod_handle_t)(iod_oh)) ((iod_obj_id_t)(iod_id))
((hid_t)(gcpl_id)))
MERCURY_GEN_PROC(group_close_in_t, ((axe_t)(axe_info))
((iod_handle_t)(iod_oh)) ((iod_obj_id_t)(iod_id)))
MERCURY_GEN_PROC(map_create_in_t, ((axe_t)(axe_info))
((iod_handle_t)(coh)) ((iod_handle_t)(loc_oh))
((iod_obj_id_t)(loc_id)) ((iod_obj_id_t)(map_id))
((hg_string_t)(name))
((hid_t)(keytype_id)) ((hid_t)(valtype_id))
((hid_t)(mapl_id)) ((hid_t)(mcpl_id))
((hid_t)(lcpl_id)))
MERCURY_GEN_PROC(map_create_out_t, ((iod_handle_t)(iod_oh)))
MERCURY_GEN_PROC(map_open_in_t, ((axe_t)(axe_info))
((iod_handle_t)(coh)) ((iod_handle_t)(loc_oh))
((iod_obj_id_t)(loc_id))
((hg_string_t)(name)) ((hid_t)(mapl_id)))
MERCURY_GEN_PROC(map_open_out_t, ((iod_handle_t)(iod_oh)) ((iod_obj_id_t)(iod_id))
((hid_t)(keytype_id)) ((hid_t)(valtype_id)) ((hid_t)(mcpl_id)))
MERCURY_GEN_PROC(map_set_in_t, ((axe_t)(axe_info))
((iod_handle_t)(coh)) ((iod_handle_t)(iod_oh))
((iod_obj_id_t)(iod_id))
((hid_t)(key_maptype_id)) ((hid_t)(key_memtype_id)) ((binary_buf_t)(key))
((hid_t)(val_maptype_id)) ((hid_t)(val_memtype_id)) ((binary_buf_t)(val))
((hid_t)(dxpl_id)))
MERCURY_GEN_PROC(map_get_in_t, ((axe_t)(axe_info))
((iod_handle_t)(coh)) ((iod_handle_t)(iod_oh))
((iod_obj_id_t)(iod_id))
((hid_t)(key_maptype_id)) ((hid_t)(key_memtype_id)) ((binary_buf_t)(key))
((hid_t)(val_maptype_id)) ((hid_t)(val_memtype_id))
((hid_t)(dxpl_id)))
MERCURY_GEN_PROC(map_get_out_t, ((int32_t)(ret)) ((value_t)(val)))
MERCURY_GEN_PROC(map_get_count_in_t, ((axe_t)(axe_info))
((iod_handle_t)(coh)) ((iod_handle_t)(iod_oh))
((iod_obj_id_t)(iod_id)))
MERCURY_GEN_PROC(map_op_in_t, ((axe_t)(axe_info))
((iod_handle_t)(coh)) ((iod_handle_t)(iod_oh))
((iod_obj_id_t)(iod_id))
((hid_t)(key_maptype_id)) ((hid_t)(key_memtype_id)) ((binary_buf_t)(key)))
MERCURY_GEN_PROC(map_close_in_t, ((axe_t)(axe_info))
((iod_handle_t)(iod_oh)) ((iod_obj_id_t)(iod_id)))
MERCURY_GEN_PROC(dset_create_in_t, ((axe_t)(axe_info))
((iod_handle_t)(coh)) ((iod_handle_t)(loc_oh))
((iod_obj_id_t)(loc_id)) ((iod_obj_id_t)(dset_id))
((hg_string_t)(name))
((hid_t)(dapl_id)) ((hid_t)(dcpl_id)) ((hid_t)(lcpl_id))
((hid_t)(type_id)) ((hid_t)(space_id)))
MERCURY_GEN_PROC(dset_create_out_t, ((iod_handle_t)(iod_oh)))
MERCURY_GEN_PROC(dset_open_in_t, ((axe_t)(axe_info))
((iod_handle_t)(coh)) ((iod_handle_t)(loc_oh))
((iod_obj_id_t)(loc_id))
((hg_string_t)(name)) ((hid_t)(dapl_id)))
MERCURY_GEN_PROC(dset_open_out_t, ((iod_handle_t)(iod_oh)) ((iod_obj_id_t)(iod_id))
((hid_t)(dcpl_id)) ((hid_t)(type_id)) ((hid_t)(space_id)))
MERCURY_GEN_PROC(dset_set_extent_in_t, ((axe_t)(axe_info))
((iod_handle_t)(coh)) ((iod_handle_t)(iod_oh))
((iod_obj_id_t)(iod_id)) ((dims_t)(dims)))
MERCURY_GEN_PROC(dset_io_in_t, ((axe_t)(axe_info))
((iod_handle_t)(coh)) ((iod_handle_t)(iod_oh))
((iod_obj_id_t)(iod_id))
((hid_t)(dset_type_id)) ((hid_t)(mem_type_id))
((hid_t)(space_id)) ((hid_t)(dxpl_id)) ((uint32_t)(checksum))
((hg_bulk_t)(bulk_handle)))
MERCURY_GEN_PROC(dset_get_vl_size_in_t, ((axe_t)(axe_info))
((iod_handle_t)(coh)) ((iod_handle_t)(iod_oh))
((iod_obj_id_t)(iod_id)) ((hid_t)(mem_type_id))
((hid_t)(space_id)) ((hid_t)(dxpl_id)))
MERCURY_GEN_PROC(dset_read_out_t, ((int32_t)(ret)) ((uint32_t)(cs)) ((size_t)(buf_size)))
MERCURY_GEN_PROC(dset_close_in_t, ((axe_t)(axe_info))
((iod_handle_t)(iod_oh)) ((iod_obj_id_t)(iod_id)))
MERCURY_GEN_PROC(dtype_commit_in_t, ((axe_t)(axe_info))
((iod_handle_t)(coh)) ((iod_handle_t)(loc_oh))
((iod_obj_id_t)(loc_id)) ((iod_obj_id_t)(dtype_id))
((hg_string_t)(name))
((hid_t)(tapl_id)) ((hid_t)(tcpl_id)) ((hid_t)(lcpl_id))
((hid_t)(type_id)))
MERCURY_GEN_PROC(dtype_commit_out_t, ((iod_handle_t)(iod_oh)))
MERCURY_GEN_PROC(dtype_open_in_t, ((axe_t)(axe_info))
((iod_handle_t)(coh)) ((iod_handle_t)(loc_oh))
((iod_obj_id_t)(loc_id))
((hg_string_t)(name)) ((hid_t)(tapl_id)))
MERCURY_GEN_PROC(dtype_open_out_t, ((iod_handle_t)(iod_oh)) ((iod_obj_id_t)(iod_id))
((hid_t)(tcpl_id)) ((hid_t)(type_id)))
MERCURY_GEN_PROC(dtype_close_in_t, ((axe_t)(axe_info))
((iod_handle_t)(iod_oh)) ((iod_obj_id_t)(iod_id)))
MERCURY_GEN_PROC(link_create_in_t, ((axe_t)(axe_info))
((int8_t)(create_type)) ((iod_handle_t)(coh))
((iod_handle_t)(loc_oh)) ((iod_obj_id_t)(loc_id))
((hg_string_t)(loc_name))
((iod_handle_t)(target_loc_oh)) ((iod_obj_id_t)(target_loc_id))
((hg_string_t)(target_name))
((hg_string_t)(link_value))
((hid_t)(lapl_id)) ((hid_t)(lcpl_id)))
MERCURY_GEN_PROC(link_move_in_t, ((axe_t)(axe_info))
((hbool_t)(copy_flag)) ((iod_handle_t)(coh))
((iod_handle_t)(src_loc_oh)) ((iod_obj_id_t)(src_loc_id))
((hg_string_t)(src_loc_name))
((iod_handle_t)(dst_loc_oh)) ((iod_obj_id_t)(dst_loc_id))
((hg_string_t)(dst_loc_name))
((hid_t)(lapl_id)) ((hid_t)(lcpl_id)))
MERCURY_GEN_PROC(link_op_in_t, ((axe_t)(axe_info))
((iod_handle_t)(coh)) ((iod_handle_t)(loc_oh))
((iod_obj_id_t)(loc_id))
((hg_string_t)(path)))
MERCURY_GEN_PROC(link_get_val_in_t, ((axe_t)(axe_info))
((iod_handle_t)(coh)) ((iod_handle_t)(loc_oh))
((iod_obj_id_t)(loc_id))
((hg_string_t)(path)) ((uint64_t)(length)))
MERCURY_GEN_PROC(link_get_val_out_t, ((int32_t)(ret)) ((value_t)(value)))
MERCURY_GEN_PROC(object_op_in_t, ((axe_t)(axe_info))
((iod_handle_t)(coh)) ((iod_handle_t)(loc_oh))
((iod_obj_id_t)(loc_id))
((hg_string_t)(loc_name)))
MERCURY_GEN_PROC(object_open_out_t, ((int32_t)(obj_type))
((iod_handle_t)(iod_oh)) ((iod_obj_id_t)(iod_id))
((hid_t)(cpl_id)) ((hid_t)(type_id)) ((hid_t)(space_id)))
MERCURY_GEN_PROC(object_copy_in_t, ((axe_t)(axe_info))
((iod_handle_t)(coh))
((iod_handle_t)(src_loc_oh)) ((iod_obj_id_t)(src_loc_id))
((hg_string_t)(src_loc_name))
((iod_handle_t)(dst_loc_oh)) ((iod_obj_id_t)(dst_loc_id))
((hg_string_t)(dst_loc_name))
((hid_t)(ocpypl_id)) ((hid_t)(lcpl_id)))
MERCURY_GEN_PROC(object_set_comment_in_t, ((axe_t)(axe_info))
((iod_handle_t)(coh)) ((iod_handle_t)(loc_oh))
((iod_obj_id_t)(loc_id))
((hg_string_t)(path)) ((hg_string_t)(comment)))
MERCURY_GEN_PROC(object_get_comment_in_t, ((axe_t)(axe_info))
((iod_handle_t)(coh)) ((iod_handle_t)(loc_oh))
((iod_obj_id_t)(loc_id))
((hg_string_t)(path)) ((uint64_t)(length)))
MERCURY_GEN_PROC(object_get_comment_out_t, ((int32_t)(ret)) ((name_t)(name)))
#endif /* H5_HAVE_EFF */
#endif /* _H5VLiod_common_H */
|