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
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
|
/** \page VOL_Connector HDF5 Virtual Object Layer (VOL) Connector Author Guide
Navigate back: \ref index "Main"
<hr>
\section secVOLIntro Introduction
The Virtual Object Layer (VOL) is an abstraction layer in the HDF5 library which intercepts all API
calls that could potentially access objects in an HDF5 container and forwards those calls to object drivers
referred to as <em>VOL connectors</em>. The architecture of this feature is described in the \ref H5VL_UG
and VOL Architecture and Internals Documentation and will not be duplicated here.
This guide is for people who are interested in developing their own VOL connector for the HDF5 library.
It is assumed that the reader has good knowledge of the VOL architecture obtained by reading the VOL
architectural design document.
\section secVOLCreate Creating a New Connector
\subsection subsecVOLOverview Overview
Creating a new VOL connector can be a complicated process. You will need to map your storage system
to the HDF5 data model through the lens of the VOL and this may involve some impedance mismatch that
you will have to work around. The good news is that the HDF5 library has been re-engineered to handle
arbitrary, connector-specific data structures via the VOL callbacks, so no knowledge of the library internals
is necessary to write a VOL connector.
Writing a VOL connector requires these things:
\li Decide on library vs plugin vs internal.
\li Set up your build/test files (CMake, Autotools, etc.).
\li Fill in some boilerplate information in yourH5VLclasststruct.
\li Decide how you will perform any necessary initialization needed by your storage system.
\li Map Storage to HDF5 File Objects
\li Create implementations for the callbacks you need to support.
\li Test the connector.
Each of the steps listed above is described in more detail in this section of the document.
The "model then implement" steps can be performed iteratively. You might begin by only supporting files,
datasets, and groups and only allowing basic operations on them. In some cases, this may be all that is
needed. As your needs grow, you can repeat those steps and increase the connector's HDF5 API coverage
at a pace that makes sense for your users.
Also, note that this document only covers writing VOL connectors using the C programming language. It
is often possible to write connectors in other programming languages (e.g.; Python) via the language's C
interop facilities, but that topic is out of scope for this document.
\subsection subsecVOL112dep The HDF5 1.12.x VOL Interface Is DEPRECATED
Important changes were made to the VOL interface for HDF5 1.13.0 and, due to binary compatibility issues,
these cannot be merged to HDF5 1.12.x. For this reason, VOL connector development should be shifted to
target 1.13.0 as no further development of the VOL interface will take place on the 1.12.x branch. Unlike the
other development branches of the library, there is no hdf5_1_13 branch - all HDF5 1.13.0 development is
taking place in the develop branch of the HDF5 repository and 1.13.x branches will split off from that.
Note also that HDF5 1.13.0 is considered an unstable branch, and the API and file format are subject to
change ("unstable" means "not yet finalized", not "buggy"). The VOL feature is under active development
and, although it is nearing its final form, may change further before the stable HDF5 1.14.0 release targeted
for 2022.
\subsection subsecVOLRelated VOL-Related HDF5 Header Files
Use of the VOL, including topics such as registration and loading VOL plugins, is described in the \ref H5VL_UG.
Public header Files you will need to be familiar with include:
<table>
<tr>
<td>H5VLpublic.h
</td>
<td>Public VOL header.
</td>
</tr>
<tr>
<td>H5VLconnector.h
</td>
<td>Main header for connector authors. Contains definitions for the main VOL struct and callbacks, enum values, etc.
</td>
</tr>
<tr>
<td>H5VLconnector_passthru.h
</td>
<td>Helper routines for passthrough connector authors.
</td>
</tr>
<tr>
<td>H5VLnative.h
</td>
<td>Native VOL connector header. May be useful if your connector will attempt to implement native HDF5 API calls that are handled via the optional callbacks.
</td>
</tr>
<tr>
<td>H5PLextern.h
</td>
<td>Needed if your connector will be built as a plugin.
</td>
</tr>
</table>
Many VOL connectors are listed on The HDF Group's VOL plugin registration page, located at:
<a href="https://portal.hdfgroup.org/display/support/Registered+VOL+Connectors">Registered VOL Connectors</a>.
Not all of these VOL connectors are supported by The HDF Group and the level of completeness varies, but the
connectors found there can serve as examples of working implementations
\subsection subsecVOLLPI Library vs Plugin vs Internal
When building a VOL connector, you have several options:
<h4>Library</h4>
The connector can be built as a normal shared or static library. Software that uses your connector will have
to link to it just like any other library. This can be convenient since you don't have to deal with plugin paths
and searching for the connector at runtime, but it also means that software which uses your connector will
have to be built and linked against it.
<h4>Plugin</h4>
You can also build your connector as a dynamically loaded plugin. The mechanism for this is the same
mechanism used to dynamically load HDF5 filter plugins. This can allow use of your connector via the
VOL environment variable, without modifying the application, but requires your plugin to be discoverable
at runtime. See the \ref H5VL_UG for more information about using HDF5 plugins.
To build your connector as a plugin, you will have to include <b>H5PLextern.h</b>
(a public header distributed with the library) and implement the #H5PLget_plugin_type
#H5PLget_plugin_info calls, both of which are trivial to code up. It also often requires your connector
to be built with certain compile/link options. The VOL connector template does all of these things.
The HDF5 library's plugin loading code will call #H5PLget_plugin_type
to determine the type of plugin(e.g.; filter, VOL) and #H5PLget_plugin_info
to get the class struct, which allows the library to query the plugin for its name and value to see if it has found
a requested plugin. When a match is found, the library will use the class struct to register the connector and map its callbacks.
For the HDF5 library to be able to load an external plugin dynamically, the plugin developer has to define
two public routines with the following name and signature:
\code
H5PL_type_t H5PLget_plugin_type(void);
const void *H5PLget_plugin_info(void);
\endcode
To show how easy this is to accomplish, here is the complete implementation of those functions in the
template VOL connector:
\code
H5PL_type_t H5PLget_plugin_type(void) { return H5PL_TYPE_VOL; }
const void *H5PLget_plugin_info(void) { return &template_class_g; }
\endcode
\ref H5PLget_plugin_type should return the library type which should always be #H5PL_TYPE_VOL.
#H5PLget_plugin_info should return a pointer to the plugin structure defining the VOL plugin with all the callbacks.
For example, consider an external plugin defined as:
\code
static const H5VL_class_t H5VL_foo_g = {
2, // version
12345, // value
"foo", // name
...
}
\endcode
The plugin would implement the two routines as:
\code
H5PL_type_t H5PLget_plugin_type(void)
{return H5PL_TYPE_VOL;}
const void *H5PLget_plugin_info(void)
{return &H5VL_foo_g;}
\endcode
<h4>Internal</h4>
Your VOL connector can also be constructed as a part of the HDF5 library. This works in the same way
as the stdio and multi virtual file drivers (VFDs) and does not require knowledge of HDF5 internals or
use of non-public API calls. You simply have to add your connector's files to the
Makefile.am and/or CMakeLists.txt files in the source distribution's src directory. This requires maintaining
a private build of the library, though, and is not recommended.
\subsection subsecVOLBuild Build Files / VOL Template
We have created a template terminal VOL connector that includes both Autotools and CMake build files. The
constructed VOL connector includes no real functionality, but can be registered and loaded as a plugin.
The VOL template can be found here:
<a href="https://github.com/HDFGroup/vol-template">VOL template</a>
The purpose of this template is to quickly get you to the point where you can begin filling in the callback
functions and writing tests. You can copy this code to your own repository to serve as the basis for your
new connector.
A template passthrough VOL is also available. This will be discussed in the section on passthrough connectors.
\subsection subsecVOLBoil H5VL_class_t Boilerplate
Several fields in the H5VLclasststruct will need to be filled in.
In HDF5 1.13.0, the <em>version</em> field will be 2, indicating the connector targets version 2 of the
#H5VL_class_t struct. Version 1 of the struct was never formally released and only available in the
develop branch of the HDF5 git repository. Version 0 is used in the deprecated HDF5 1.12.x branch.
Every connector needs a <em>name</em> and <em>value</em>. The library will use these when loading and registering the
connector (as described in the \ref H5VL_UG), so they should be unique in your ecosystem.
VOL connector values are integers, with a maximum value of 65535. Values from 0 to 255 are reserved
for internal use by The HDF Group. The native VOL connector has a value of 0. Values of 256 to 511
are for connector testing and should not be found in the wild. Values of 512 to 65535 are for external
connectors.
As is the case with HDF5 filters, The HDF Group can assign you an official VOL connector value. Please
contact <a href="help@hdfgroup.org">help@hdfgroup.org</a> for help with this. We currently do not register connector names, though the
name you've chosen will appear on the registered VOL connectors page.
As noted above, registered VOL connectors will be listed at:
<a href="https://portal.hdfgroup.org/display/support/Registered+VOL+Connectors">Registered VOL Connectors</a>
A new \b conn_version field has been added to the class struct for 1.13. This field is currently not used by
the library so its use is determined by the connector author. Best practices for this field will be determined
in the near future and this part of the guide will be updated.
The \b cap_flags field is used to determine the capabilities of the VOL connector. At this time, the use of this
field is limited to indicating thread-safety, asynchronous capabilities, and ability to produce native HDF5
files. Supported flags can be found in \ref H5VLconnector.h.
\code
// Capability flags for connector
#define H5VL_CAP_FLAG_NONE 0 // No special connector capabilities
#define H5VL_CAP_FLAG_THREADSAFE 0x01 // Connector is threadsafe
#define H5VL_CAP_FLAG_ASYNC 0x02 // Connector performs operations asynchronously
#define H5VL_CAP_FLAG_NATIVE_FILES 0x04 // Connector produces native file format
\endcode
\subsection subsecVOLInit Initialization and Shutdown
You'll need to decide how to perform any initialization and shutdown tasks that are required by your
connector. There are initialize and terminate callbacks in the #H5VL_class_t struct to handle this. They
are invoked when the connector is registered and unregistered, respectively. The initialize callback can take
a VOL initialization property list, so any properties you need for initialization can be applied to it. The
HDF5 library currently makes no use of the vipl so there are no default vipl properties.
If this is unsuitable, you may have to create custom connector-specific API calls to handle initialization and
termination. It may also be useful to perform operations in a custom API call used to set the VOL connector
in the fapl.
The initialization and terminate callbacks:
\code
herr_t (*initialize)(hid_t vipl_id); // Connector initialization callback
herr_t (*terminate)(void); // Connector termination callback
\endcode
\subsection subsecVOLMap Map Storage to HDF5 File Objects
The most difficult part of designing a new VOL connector is going to determining how to support HDF5
file objects and operations using your storage system. There isn't much specific advice to give here, as each
connector will have unique needs, but a forthcoming "tutorial" connector will set up a simple connector and
demonstrate this process.
\subsection subsecVOLFillIn Fill In VOL Callbacks
For each file object you support in your connector (including the file itself), you will need to create a
data struct to hold whatever file object metadata that are needed by your connector. For example, a data
structure for a VOL connector based on text files might have a file struct that contains a file pointer for the
text file, buffers used for caching data, etc. Pointers to these data structures are where your connector's
state is stored and are returned to the HDF5 library from the create/open/etc. callbacks such as
<em>dataset create</em>.
Once you have your data structures, you'll need to create your own implementations of the callback functions
and map them via your #H5VL_class_t struct.
\subsection subsecVOLOpt Handling Optional Operations
Handling optional operations has changed significantly in HDF5 1.13.0. In the past, optional operations were
specified using an integer <em>opt_type</em> parameter. This proved to be a problem with pass-through connectors,
though, as it was possible to have <em>opt_type</em> clash if two connectors used the same <em>opt_type</em> values.
The new scheme allows a connector to register an optional operation with the library and receive a dynamically-allocated
<em>opt_type</em> value for the operation.
The following API calls can be used to manage the optional operations:
\code
herr_t H5VLregister_opt_operation(H5VL_subclass_t subcls, const char *op_name, int *op_val);
herr_t H5VLfind_opt_operation(H5VL_subclass_t subcls, const char *op_name, int *op_val);
herr_t H5VLunregister_opt_operation(H5VL_subclass_t subcls, const char *op_name)
\endcode
The <em>register</em> call is used to register an operation for a subclass (file, etc.) and the <em>opt_type</em> parameter
that the library assigned to the operation will be returned via the <em>opt_val</em> parameter. This value can then
be passed to one of the subclass-specific API calls (listed below). If you need to find an existing optional
call's assigned <em>opt_type</em> value by name, you can use the <em>find</em> call.
One recommended way to handle optional calls is to <em>register</em> all the optional calls at startup, saving the
values in connector state, then use these cached values in your optional calls. The assigned values should be
unregistered using the <em>unregister</em> call when the connector shuts down.
Subclass-specific optional calls:
\code
herr_t H5VLattr_optional_op(const char *app_file, const char *app_func, unsigned app_line,
hid_t attr_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id);
herr_t H5VLdataset_optional_op(const char *app_file, const char *app_func, unsigned app_line,
hid_t dset_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id);
herr_t H5VLdatatype_optional_op(const char *app_file, const char *app_func, unsigned app_line,
hid_t type_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_tes_id);
herr_t H5VLfile_optional_op(const char *app_file, const char *app_func, unsigned app_line,
hid_t file_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id);
herr_t H5VLgroup_optional_op(const char *app_file, const char *app_func, unsigned app_line,
hid_t group_id, H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id);
herr_t H5VLlink_optional_op(const char *app_file, const char *app_func, unsigned app_line,
hid_t loc_id, const char *name, hid_t lapl_id, H5VL_optional_args_t *args,
hid_t dxpl_id, hid_t es_id);
herr_t H5VLobject_optional_op(const char *app_file, const char *app_func, unsigned app_line,
hid_t loc_id, const char *name, hid_t lapl_id,
H5VL_optional_args_t *args, hid_t dxpl_id, hid_t es_id);
herr_t H5VLrequest_optional_op(void *req, hid_t connector_id, H5VL_optional_args_t *args);
\endcode
\subsection subsecVOLTest Testing Your Connector
At the time of writing, some of the HDF5 library tests have been abstracted out of the library with their
native-file-format-only sections removed and added to a VOL test suite available here:
<a href="https://github.com/HDFGroup/vol-tests">vol-tests</a>
This is an evolving set of tests, so see the documentation in that repository for instructions as to its use.
You may want to clone and modify and/or extend these tests for use with your own connector.
In the future, we plan to modify the HDF5 test suite that ships with the library to use a future VOL
capabilities flags scheme to selectively run tests that a particular connector supports. As this is a large task,
it may be some time before that work is complete.
\subsection subsecVOLPassthrough Passthrough Connectors
Coming Soon
\subsection subsecVOLAsync Asynchronous Operations
Coming Soon
\section secVOLRef VOL Connector Interface Reference
Each VOL connector should be of type #H5VL_class_t:
<table>
<tr>
<td>
<em>VOL connector class, H5VLpublic.h</em>
\snippet H5VLconnector.h H5VL_class_t_snip
</td>
</tr>
</table>
The <em>version</em> field is the version of the #H5VL_class_t struct. This is identical to how the <em>version</em> field is
used in the #H5Z_class2_t struct for filters.
The <em>value</em> field is a unique integer identifier that should be between 512 and 65535 for external, non-library
connectors.
The <em>name</em> field is a string that uniquely identifies the VOL connector name.
The <em>conn_version</em> is the connector version. This is currently not used by the library.
The <em>cap_flags</em> holds bitwise capability/feature flags that determine which operations and capabilities are
supported by a the VOL connector. These fields were enumerated in the previous section.
The <em>initialize</em> field is a function pointer to a routine that a connector implements to set up or initialize
access to the connector. Implementing this function by the connector is not required since some connectors
do not require any set up to start accessing the connector. In that case, the value of the function pointer
should be set to NULL. Connector specific variables that are required to be passed from users should be
passed through the VOL initialize property list. Generic properties can be added to this property class
for user-defined connectors that cannot modify the HDF5 library to add internal properties. For more
information consult the property list reference manual pages.
The <em>terminate</em> field is a function pointer to a routine that a connector implements to terminate or finalize
access to the connector. Implementing this function by the connector is not required since some connectors
do not require any termination phase to the connector. In that case, the value of the function pointer should
be set to NULL.
The rest of the fields in the #H5VL_class_t struct are "subclasses" that define all the VOL function callbacks
that are mapped to from the HDF5 API layer. Those subclasses are categorized into three categories, VOL
Framework, Data Model, and Infrastructure / Services.
VOL Framework classes provide functionality for working with the VOL connectors themselves (e.g., working
with connector strings) and with wrapping and unwrapping objects for passthrough connectors.
Data Model classes are those that provide functionality for accessing an HDF5 container and objects in that
container as defined by the HDF5 data model.
Infrastructure / Service classes are those that provide services for users that are not related to the data model
specifically. Asynchronous operations, for example, are a service that most connectors can implement, so we
add a class for it in the VOL structure.
If a service becomes generic enough and common among many connectors, a class for it should be added
to the VOL structure. However, many connectors can/will provide services that are not shared by other
connectors. A good way to support these services is through an optional callback in the VOL structure which
can be a hook from the API to the connector that provides those services, passing any necessary arguments
needed without the HDF5 library having to worry about supporting that service. A similar API operation
to allow users to use that service will be added. This API call would be similar to an "ioctl" call where any
kind of operation can be supported and passed down to the connector that has enough knowledge from the
user to interpret the type of the operation. All classes and their defined callbacks will be detailed in the
following sub-sections.
To handle that large set of API routines, each class in the Data Model category has three generic callbacks,
<em>get</em>, <em>specific</em>, and <em>optional</em> to handle the three set of API operations outline above respectively. To
handle the varying parameters that can be passed to the callback, each callback will take a struct parameter
that includes an enum <em>get/specific</em> or integer <em>optional</em> field indicating the operation and a union of the
possible parameters <em>get/specific</em> or void pointer to the parameters <em>optional</em>.
The optional args struct used for all optional operations:
\code
// Struct for all 'optional' callbacks
typedef struct H5VL_optional_args_t {
int op_type; // Operation to perform
void *args; // Pointer to operation's argument struct
} H5VL_optional_args_t;
\endcode
The <em>opt_type</em> member is the value assigned by the library when the optional operation was registered (or
<em>defined</em> in the case of the native VOL connector) and the <em>args</em> member is a pointer to the optional
operation's parameters (usually passed in as a struct).
Note that this differs from the HDF5 1.12.x scheme, which used <em>va_lists</em>.
The <em>optional</em> callback is a free for all callback where anything from the API layer is passed in directly.
This callback is used to support connector specific operations in the API that other connectors should or
would not know about. More information about types and the arguments for each type will be detailed in
the corresponding class arguments.
\subsection subsecVOLRefMap Mapping the API to the Callbacks
The callback interface defined for the VOL has to be general enough to handle all the HDF5 API operations
that would access the file. Furthermore, it has to capture future additions to the HDF5 library with little to
no changes to the callback interface. Changing the interface often whenever new features are added would
be discouraging to connector developers since that would mean reworking their VOL connector structure.
To remedy this issue, every callback will contain two parameters:
<ul>
<li>A data transfer property list (DXPL) which allows that API to put some properties on for the connectors
to retrieve if they have to for particular operations, without having to add arguments to the VOL
callback function.</li>
<li>A pointer to a request <em>(void **req)</em> to handle asynchronous operations if the HDF5 library adds
support for them in future releases. hat pointer is set by the VOL connector to a request object it
creates to manage progress on that asynchronous operation. If the <em>req</em> is <em>NULL</em>, that means that the
API operation is blocking and so the connector would not execute the operation asynchronously. If
the connector does not support asynchronous operations, it needs not to worry about this field and
leaves it unset.</li>
</ul>
In order to keep the number of the VOL object classes and callbacks concise and readable, it was decided
not to have a one-to-one mapping between API operation and callbacks. The parameter names and types
will be detailed when describing each callback in their respective sections.
The HDF5 library provides several routines to access an object in the container. For example, to open an
attribute on a group object, the user could use #H5Aopen and pass the group identifier directly where the
attribute needs to be opened. Alternatively, the user could use #H5Aopen_by_name or #H5Aopen_by_idx
to open the attribute, which provides a more flexible way of locating the attribute, whether by a starting
object location and a path or an index type and traversal order. All those types of accesses usually map to
one VOL callback with a parameter that indicates the access type. In the example of opening an attribute,
the three API open routine will map to the same VOL open callback but with a different location parameter.
The same applies to all types of routines that have multiple types of accesses. The location parameter is a
structure defined in:
<em>Structure to hold parameters for object locations, H5VLconnector.h</em>
\code
//
// Structure to hold parameters for object locations.
// either: BY_SELF, BY_NAME, BY_IDX, BY_TOKEN
typedef struct H5VL_loc_params_t {
H5I_type_t obj_type; // The object type of the location object
H5VL_loc_type_t type; // The location type
union { // parameters of the location
H5VL_loc_by_token_t loc_by_token;
H5VL_loc_by_name_t loc_by_name;
H5VL_loc_by_idx_t loc_by_idx;
}loc_data;
} H5VL_loc_params_t
//
// Types for different ways that objects are located in an
// HDF5 container.
typedef enum H5VL_loc_type_t {
// starting location is the target object
H5VL_OBJECT_BY_SELF,
// location defined by object and path in H5VL_loc_by_name_t
H5VL_OBJECT_BY_NAME,
// location defined by object, path, and index in H5VL_loc_by_idx_t
H5VL_OBJECT_BY_IDX,
// location defined by token (e.g. physical address) in H5VL_loc_by_token_t
H5VL_OBJECT_BY_TOKEN,
} H5VL_loc_type_t;
typedef struct H5VL_loc_by_name {
const char *name; // The path relative to the starting location
hid_t lapl_id; // The link access property list
}H5VL_loc_by_name_t;
typedef struct H5VL_loc_by_idx {
const char *name; // The path relative to the starting location
H5_index_t idx_type; // Type of index
H5_iter_order_t order; // Index traversal order
hsize_t n; // Position in index
hid_t lapl_id; // The link access property list
}H5VL_loc_by_idx_t;
typedef struct H5VL_loc_by_token {
void *token; // arbitrary token (physical address of location in native VOL)
}H5VL_loc_by_token_t;
\endcode
\subsection subsecVOLRefConn Connector Information Callbacks
This section's callbacks involve the connector-specific information that will be associated with the VOL in
the fapl via <b>H5Pset_fapl_<name></b> et al. This data is copied into the fapl so the library needs these functions to
manage this in a way that prevents resource leaks.
The <em>to_str</em> and <em>from_str</em> callbacks are used to convert the connector-specific data to and from a configuration
string. There is no official way to construct VOL configuration strings, so the format used (JSON,
XML, getopt-style processing, etc.) is up to the connector author. These connector configuration strings
can be used to set up a VOL connector via mechanisms like command-line parameters and environment
variables.
<em>Info class for connector information routines, H5VLconnector.h</em>
\code
// VOL connector info fields & callbacks
typedef struct H5VL_info_class_t {
size_t size; // Size of the VOL info
void *(*copy)(const void *info); // Callback to create a copy of the VOL info
herr_t (*cmp)(int *cmp_value, const void *info1, const void *info2); // Callback to compare VOL info
herr_t (*free)(void *info); // Callback to release a VOL info
herr_t (*to_str)(const void *info, char **str); // Callback to serialize connector's info into a string
herr_t (*from_str)(const char *str, void **info); // Callback to deserialize a string into connector's info
} H5VL_info_class_t;
\endcode
\subsubsection subsubsecVOLRefConnsize info: size
The <em>size</em> field indicates the size required to store any special information that the connector needs.
If the connector requires no special information, set this field to zero.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
size_t size;
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefConncopy info: copy
The <em>copy</em> callback is invoked when the connector is selected for use with <b>H5Pset_fapl_<name></b>, the
connector-specific set call, etc. Where possible, the information should be deep copied in such a way that the original
data can be freed.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
void * (*copy)(const void *info);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
info (IN): The connector-specific info to copy.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefConncmp info: cmp
The <em>cmp</em> callback is used to determine if two connector-specific data structs are identical and helps the library
manage connector resources.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*cmp)(int *cmp_value, const void *info1, const void *info2);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
cmp_value (OUT): A strcmp-like compare value.
info1 (IN): The 1st connector-specific info to copy.
info2 (IN): The 2nd connector-specific info to copy.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefConnfree info: free
The <em>free</em> callback is used to clean up the connector-specific information that was copied when set in the
fapl via the <em>copy</em> callback.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*free)(void *info);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
info (IN): The connector-specific info to free.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefConnto info: to_str
The <em>to_str</em> callback converts a connector-specific information structure to a connector-specific configuration
string. It is the opposite of the <em>from_str</em> callback.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*to_str)(const void *info, char **str);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
info (IN): The connector-specific info to convert to a configuration string.
str (OUT): The constructed configuration string.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefConnfrom info: from_str
The <em>from_str</em> callback converts a connector-specific configuration string to a connector-specific information
structure. It is the opposite of the <em>to_str</em> callback.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*from_str)(const char *str, void **info);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
str (IN): The connector-specific configuration string.
info (OUT): The connector-specific info generated from the configuration string.
\endcode
</td>
</tr>
</table>
\subsection subsecVOLRefWrap Object Wrap Callbacks
The object wrap callbacks are used by passthrough connectors to wrap/unwrap objects and contexts when
passing them up and down the VOL chain.
<em>Wrap class for object wrapping routines, H5VLconnector.h</em>
\code
typedef struct H5VL_wrap_class_t {
void *(*get_object)(const void *obj); // Callback to retrieve underlying object
herr_t (*get_wrap_ctx)(const void *obj, void **wrap_ctx); // Callback to retrieve the object wrapping context for the connector
void *(*wrap_object)(void *obj, H5I_type_t obj_type, void *wrap_ctx); // Callback to wrap a library object
void *(*unwrap_object)(void *obj); // Callback to unwrap a library object
herr_t (*free_wrap_ctx)(void *wrap_ctx); // Callback to release the object wrapping context for the connector
} H5VL_wrap_class_t;
\endcode
\subsubsection subsubsecVOLRefWrapobj wrap: get_object
Retrieves an underlying object.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
void * (*get_object)(const void *obj);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): Object being unwrapped.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefWrapctx wrap: get_wrap_ctx
Get a VOL connector's object wrapping context.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*get_wrap_ctx)(const void *obj, void **wrap_ctx);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): Object for which we need a context.
wrap_ctx (OUT): Context.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefWrapwrap wrap: wrap_object
Asks a connector to wrap an underlying object.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
void * (*wrap_object)(void *obj, H5I_type_t obj_type, void *wrap_ctx);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): Object being wrapped.
obj_type (IN): Object type (see H5Ipublic.h).
wrap_ctx (IN): Context.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefWrapunwrap wrap: unwrap_object
Unwrap an object from connector.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
void * (*unwrap_object)(void *obj);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): Object being unwrapped.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefWrapfree wrap: free_wrap_ctx
Release a VOL connector's object wrapping context.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*free_wrap_ctx)(void *wrap_ctx);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
wrap_ctx (IN): Context to be freed.
\endcode
</td>
</tr>
</table>
\subsection subsecVOLRefAttr The Attribute Function Callbacks
The attribute API routines (\ref H5A) allow HDF5 users to create and manage HDF5 attributes. All the \ref H5A
API routines that modify the HDF5 container map to one of the attribute callback routines in this class
that the connector needs to implement.
<em>Structure for attribute callback routines, H5VLconnector.h</em>
\code
typedef struct H5VL_attr_class_t {
void *(*create)(void *obj, const H5VL_loc_params_t *loc_params, const char *attr_name, hid_t type_id,
hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t dxpl_id, void **req);
void *(*open)(void *obj, const H5VL_loc_params_t *loc_params, const char *attr_name, hid_t aapl_id,
hid_t dxpl_id, void **req);
herr_t (*read)(void *attr, hid_t mem_type_id, void *buf, hid_t dxpl_id, void **req);
herr_t (*write)(void *attr, hid_t mem_type_id, const void *buf, hid_t dxpl_id, void **req);
herr_t (*get)(void *obj, H5VL_attr_get_args_t *args, hid_t dxpl_id, void **req);
herr_t (*specific)(void *obj, const H5VL_loc_params_t *loc_params, H5VL_attr_specific_args_t *args,
hid_t dxpl_id, void **req);
herr_t (*optional)(void *obj, H5VL_optional_args_t *args, hid_t dxpl_id, void **req);
herr_t (*close)(void *attr, hid_t dxpl_id, void **req);
} H5VL_attr_class_t;
\endcode
\subsubsection subsubsecVOLRefAttrcreate attr: create
The <em>create</em> callback in the attribute class creates an attribute object in the container of the location object
and returns a pointer to the attribute structure containing information to access the attribute in future calls.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
void *(*create)(void *obj, H5VL_loc_params_t *loc_params, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): Pointer to an object where the attribute needs to be created or where the look-up
of the target object needs to start.
loc_params (IN): Pointer to the location parameters as explained in "Mapping the API to the Callbacks".
attr_name (IN): The name of the attribute to be created.
type_id (IN): The datatype of the attribute.
space_id (IN): The dataspace of the attribute.
acpl_id (IN): The attribute creation property list.
aapl_id (IN): The attribute access property list.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefAttropen attr: open
The <em>open</em> callback in the attribute class opens an attribute object in the container of the location object and
returns a pointer to the attribute structure containing information to access the attribute in future calls.<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
void *(*open)(void *obj, H5VL_loc_params_t *loc_params, const char *attr_name, hid_t aapl_id, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): Pointer to an object where the attribute needs to be opened or where the look-up
of the target object needs to start.
loc_params (IN): Pointer to the location parameters as explained in "Mapping the API to the Callbacks".
attr_name (IN): The name of the attribute to be opened.
aapl_id (IN): The attribute access property list.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefAttrread attr: read
The <em>read</em> callback in the attribute class reads data from the attribute object and returns an <em>herr_t</em> indicating
success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*read)(void *attr, hid_t mem_type_id, void *buf, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
attr (IN): Pointer to the attribute object.
mem_type_id (IN): The memory datatype of the attribute.
buf (OUT): Data buffer to be read into.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefAttrwrite attr: write
The <em>write</em> callback in the attribute class writes data to the attribute object and returns an <em>herr_t</em> indicating
success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*write)(void *attr, hid_t mem_type_id, const void *buf, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
attr (IN): Pointer to the attribute object.
mem_type_id (IN): The memory datatype of the attribute.
buf (IN): Data buffer to be written.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefAttrget attr: get
The <em>get</em> callback in the attribute class retrieves information about the attribute as specified in the <em>get_type</em> parameter.
It returns an <em>herr_t</em> indicating success or failure
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*get)(void *obj, H5VL_attr_get_args_t *args, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): An attribute or location object where information needs to be retrieved from.
args (IN/OUT): A pointer to the arguments struct.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\code
/* Values for attribute 'get' operations */
typedef enum H5VL_attr_get_t {
H5VL_ATTR_GET_ACPL, /* creation property list */
H5VL_ATTR_GET_INFO, /* info */
H5VL_ATTR_GET_NAME, /* access property list */
H5VL_ATTR_GET_SPACE, /* dataspace */
H5VL_ATTR_GET_STORAGE_SIZE, /* storage size */
H5VL_ATTR_GET_TYPE /* datatype */
} H5VL_attr_get_t;
/* Parameters for attribute 'get_name' operation */
typedef struct H5VL_attr_get_name_args_t {
H5VL_loc_params_t loc_params; /* Location parameters for object access */
size_t buf_size; /* Size of attribute name buffer */
char *buf; /* Buffer for attribute name (OUT) */
size_t *attr_name_len; /* Actual length of attribute name (OUT) */
} H5VL_attr_get_name_args_t;
/* Parameters for attribute 'get_info' operation */
typedef struct H5VL_attr_get_info_args_t {
H5VL_loc_params_t loc_params; /* Location parameters for object access */
const char *attr_name; /* Attribute name (for get_info_by_name) */
H5A_info_t *ainfo; /* Attribute info (OUT) */
} H5VL_attr_get_info_args_t;
/* Parameters for attribute 'get' operations */
typedef struct H5VL_attr_get_args_t {
H5VL_attr_get_t op_type; /* Operation to perform */
/* Parameters for each operation */
union {
/* H5VL_ATTR_GET_ACPL */
struct {
hid_t acpl_id; /* Attribute creation property list ID (OUT) */
} get_acpl;
/* H5VL_ATTR_GET_INFO */
H5VL_attr_get_info_args_t get_info; /* Attribute info */
/* H5VL_ATTR_GET_NAME */
H5VL_attr_get_name_args_t get_name; /* Attribute name */
/* H5VL_ATTR_GET_SPACE */
struct {
hid_t space_id; /* Dataspace ID (OUT) */
} get_space;
/* H5VL_ATTR_GET_STORAGE_SIZE */
struct {
hsize_t *data_size; /* Size of attribute in file (OUT) */
} get_storage_size;
/* H5VL_ATTR_GET_TYPE */
struct {
hid_t type_id; /* Datatype ID (OUT) */
} get_type;
} args;
} H5VL_attr_get_args_t;
\endcode
\subsubsection subsubsecVOLRefAttrspec attr: specific
The <em>specific</em> callback in the attribute class implements specific operations on HDF5 attributes as specified
in the <em>specific_type</em> parameter. It returns an <em>herr_t</em> indicating success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*specific)(void *obj, H5VL_loc_params_t *loc_params, H5VL_attr_specific_args_t *args, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): The location object where the operation needs to happen.
loc_params (IN): A pointer to the location parameters as explained in "Mapping the API to the Callbacks".
args (IN/OUT): A pointer to the arguments struct.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\code
/* Values for attribute 'specific' operation */
typedef enum H5VL_attr_specific_t {
H5VL_ATTR_DELETE, /* H5Adelete(_by_name) */
H5VL_ATTR_DELETE_BY_IDX, /* H5Adelete_by_idx */
H5VL_ATTR_EXISTS, /* H5Aexists(_by_name) */
H5VL_ATTR_ITER, /* H5Aiterate(_by_name) */
H5VL_ATTR_RENAME /* H5Arename(_by_name) */
} H5VL_attr_specific_t;
/* Parameters for attribute 'iterate' operation */
typedef struct H5VL_attr_iterate_args_t {
H5_index_t idx_type; /* Type of index to iterate over */
H5_iter_order_t order; /* Order of index iteration */
hsize_t *idx; /* Start/stop iteration index (IN/OUT) */
H5A_operator2_t op; /* Iteration callback function */
void *op_data; /* Iteration callback context */
} H5VL_attr_iterate_args_t;
/* Parameters for attribute 'delete_by_idx' operation */
typedef struct H5VL_attr_delete_by_idx_args_t {
H5_index_t idx_type; /* Type of index to iterate over */
H5_iter_order_t order; /* Order of index iteration */
hsize_t n; /* Iteration index */
} H5VL_attr_delete_by_idx_args_t;
/* Parameters for attribute 'specific' operations */
typedef struct H5VL_attr_specific_args_t {
H5VL_attr_specific_t op_type; /* Operation to perform */
/* Parameters for each operation */
union {
/* H5VL_ATTR_DELETE */
struct {
const char *name; /* Name of attribute to delete */
} del;
/* H5VL_ATTR_DELETE_BY_IDX */
H5VL_attr_delete_by_idx_args_t delete_by_idx;
/* H5VL_ATTR_EXISTS */
struct {
const char *name; /* Name of attribute to check */
hbool_t *exists; /* Whether attribute exists (OUT) */
} exists;
/* H5VL_ATTR_ITER */
H5VL_attr_iterate_args_t iterate;
/* H5VL_ATTR_RENAME */
struct {
const char *old_name; /* Name of attribute to rename */
const char *new_name; /* New attribute name */
} rename;
} args;
} H5VL_attr_specific_args_t;
\endcode
\subsubsection subsubsecVOLRefAttropt attr: optional
The <em>optional</em> callback in the attribute class implements connector specific operations on an HDF5 attribute.
It returns an <em>herr_t</em> indicating success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*optional)(void *obj, H5VL_optional_args_t *args, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): The container or object where the operation needs to happen.
args (IN/OUT): A pointer to the arguments struct.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
Each connector that requires connector-specific operations should compare the value of the <em>op_type</em> field of
the #H5VL_optional_args_t struct with the values returned from calling #H5VLregister_opt_operation to
determine how to handle the optional call and interpret the arguments passed in the struct.
\subsubsection subsubsecVOLRefAttrclose attr: close
The <em>close</em> callback in the attribute class terminates access to the attribute object and free all resources it
was consuming, and returns an <em>herr_t</em> indicating success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*close)(void *attr, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
attr (IN): Pointer to the attribute object.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\subsection subsecVOLRefDset Dataset Callbacks
The dataset API routines (\ref H5D) allow HDF5 users to create and manage HDF5 datasets. All the \ref H5D API
routines that modify the HDF5 container map to one of the dataset callback routines in this class that the
connector needs to implement.
<em>Structure for dataset callback routines, H5VLconnector.h</em>
\code
typedef struct H5VL_dataset_class_t {
void *(*create)(void *obj, const H5VL_loc_params_t *loc_params, const char *name, hid_t lcpl_id,
hid_t type_id, hid_t space_id, hid_t dcpl_id, hid_t dapl_id, hid_t dxpl_id, void **req);
void *(*open)(void *obj, const H5VL_loc_params_t *loc_params, const char *name, hid_t dapl_id,
hid_t dxpl_id, void **req);
herr_t (*read)(size_t count, void *dset[], hid_t mem_type_id[], hid_t mem_space_id[],
hid_t file_space_id[], hid_t dxpl_id, void *buf[], void **req);
herr_t (*write)(size_t count, void *dset[], hid_t mem_type_id[], hid_t mem_space_id[],
hid_t file_space_id[], hid_t dxpl_id, const void *buf[], void **req);
herr_t (*get)(void *obj, H5VL_dataset_get_args_t *args, hid_t dxpl_id, void **req);
herr_t (*specific)(void *obj, H5VL_dataset_specific_args_t *args, hid_t dxpl_id, void **req);
herr_t (*optional)(void *obj, H5VL_optional_args_t *args, hid_t dxpl_id, void **req);
herr_t (*close)(void *dset, hid_t dxpl_id, void **req);
} H5VL_dataset_class_t;
\endcode
\subsubsection subsubsecVOLRefDsetcreate dataset: create
The <em>create</em> callback in the dataset class creates a dataset object in the container of the location object and
returns a pointer to the dataset structure containing information to access the dataset in future calls.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
void *(*create)(void *obj, H5VL_loc_params_t *loc_params, const char *name, hid_t lcpl_id,hid_t type_id, hid_t space_id, hid_t dcpl_id, hid_t dapl_id, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): Pointer to an object where the dataset needs to be created or where the look-up of
the target object needs to start.
loc_params (IN): Pointer to the location parameters as explained in "Mapping the API to the Callbacks".
The type can be only H5VL_OBJECT_BY_SELF in this callback.
name (IN): The name of the dataset to be created.
lcpl_id (IN): The link creation property list.
type_id (IN): The datatype of the dataset.
space_id (IN): The dataspace of the dataset.
dcpl_id (IN): The dataset creation property list.
dapl_id (IN): The dataset access property list.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefDsetopen dataset: open
The <em>open</em> callback in the dataset class opens a dataset object in the container of the location object and
returns a pointer to the dataset structure containing information to access the dataset in future calls.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
void *(*open)(void *obj, H5VL_loc_params_t *loc_params, const char *name, hid_t dapl_id, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): Pointer to an object where the dataset needs to be opened or where the look-up of the target object needs to start.
loc_params (IN): Pointer to the location parameters as explained in "Mapping the API to the Callbacks".
The type can be only H5VL_OBJECT_BY_SELF in this callback.
name (IN): The name of the dataset to be opened.
dapl_id (IN): The dataset access property list.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefDsetread dataset: read
The <em>read</em> callback in the dataset class reads data from the dataset object and returns an <em>herr_t</em> indicating
success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*read)(void *dset, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, void *buf, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
dset (IN): Pointer to the dataset object.
mem_type_id (IN): The memory datatype of the data.
mem_space_id (IN): The memory dataspace selection.
file_space_id (IN): The file dataspace selection.
dxpl_id (IN): The data transfer property list.
buf (OUT): Data buffer to be read into.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefDsetwrite dataset: write
The <em>write</em> callback in the dataset class writes data to the dataset object and returns an <em>herr_t</em> indicating
success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*write)(void *dset, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, const void *buf, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
dset (IN): Pointer to the dataset object.
mem_type_id (IN): The memory datatype of the data.
mem_space_id (IN): The memory dataspace selection.
file_space_id (IN): The file dataspace selection.
dxpl_id (IN): The data transfer property list.
buf (IN): Data buffer to be written from.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefDsetget dataset: get
The <em>get</em> callback in the dataset class retrieves information about the dataset as specified in the <em>get_type</em>
parameter.It returns an <em>herr_t</em> indicating success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*get)(void *dset, H5VL_dataset_get_args_t *args, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
dset (IN): The dataset object where information needs to be retrieved from.
args (IN/OUT): A pointer to the arguments struct.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\code
/* Values for dataset 'get' operation */
typedef enum H5VL_dataset_get_t {
H5VL_DATASET_GET_DAPL, /* access property list */
H5VL_DATASET_GET_DCPL, /* creation property list */
H5VL_DATASET_GET_SPACE, /* dataspace */
H5VL_DATASET_GET_SPACE_STATUS, /* space status */
H5VL_DATASET_GET_STORAGE_SIZE, /* storage size */
H5VL_DATASET_GET_TYPE /* datatype */
} H5VL_dataset_get_t;
/* Parameters for dataset 'get' operations */
typedef struct H5VL_dataset_get_args_t {
H5VL_dataset_get_t op_type; /* Operation to perform */
/* Parameters for each operation */
union {
/* H5VL_DATASET_GET_DAPL */
struct {
hid_t dapl_id; /* Dataset access property list ID (OUT) */
} get_dapl;
/* H5VL_DATASET_GET_DCPL */
struct {
hid_t dcpl_id; /* Dataset creation property list ID (OUT) */
} get_dcpl;
/* H5VL_DATASET_GET_SPACE */
struct {
hid_t space_id; /* Dataspace ID (OUT) */
} get_space;
/* H5VL_DATASET_GET_SPACE_STATUS */
struct {
H5D_space_status_t *status; /* Storage space allocation status (OUT) */
} get_space_status;
/* H5VL_DATASET_GET_STORAGE_SIZE */
struct {
hsize_t *storage_size; /* Size of dataset's storage (OUT) */
} get_storage_size;
/* H5VL_DATASET_GET_TYPE */
struct {
hid_t type_id; /* Datatype ID (OUT) */
} get_type;
} args;
} H5VL_dataset_get_args_t;
\endcode
\subsubsection subsubsecVOLRefDsetspec dataset: specific
The <em>specific</em> callback in the dataset class implements specific operations on HDF5 datasets as specified in
the <em>specific_type</em> parameter. It returns an <em>herr_t</em> indicating success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*specific)(void *obj, H5VL_file_specific_args_t *args, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): The dset where the operation needs to happen.
args (IN/OUT): A pointer to the arguments struct.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\code
/* Values for dataset 'specific' operation */
typedef enum H5VL_dataset_specific_t {
H5VL_DATASET_SET_EXTENT, /* H5Dset_extent */
H5VL_DATASET_FLUSH, /* H5Dflush */
H5VL_DATASET_REFRESH /* H5Drefresh */
} H5VL_dataset_specific_t;
/* Parameters for dataset 'specific' operations */
typedef struct H5VL_dataset_specific_args_t {
H5VL_dataset_specific_t op_type; /* Operation to perform */
/* Parameters for each operation */
union {
/* H5VL_DATASET_SET_EXTENT */
struct {
const hsize_t *size; /* New dataspace extent */
} set_extent;
/* H5VL_DATASET_FLUSH */
struct {
hid_t dset_id; /* Dataset ID (IN) */
} flush;
/* H5VL_DATASET_REFRESH */
struct {
hid_t dset_id; /* Dataset ID (IN) */
} refresh;
} args;
} H5VL_dataset_specific_args_t;
\endcode
\subsubsection subsubsecVOLRefDsetopt dataset: optional
The <em>optional</em> callback in the dataset class implements connector specific operations on an HDF5 dataset.
It returns an <em>herr_t</em> indicating success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*optional)(void *obj, H5VL_optional_args_t *args, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): The container or object where the operation needs to happen.
args (IN/OUT): A pointer to the arguments struct.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
Each connector that requires connector-specific operations should compare the value of the <em>op_type</em> field of
the #H5VL_optional_args_t struct with the values returned from calling #H5VLregister_opt_operation to
determine how to handle the optional call and interpret the arguments passed in the struct.
\subsubsection subsubsecVOLRefDsetclose dataset: close
The <em>close</em> callback in the dataset class terminates access to the dataset object and free all resources it was
consuming and returns an <em>herr_t</em> indicating success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*close)(void *dset, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
dset (IN): Pointer to the dataset object.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\subsection subsecVOLRefDType Datatype Callbacks
The HDF5 datatype routines (\ref H5T) allow users to create and manage HDF5 datatypes. Those routines are
divided into two categories. One that operates on all types of datatypes but do not modify the contents of the
container (all in memory), and others that operate on named datatypes by accessing the container. When
a user creates an HDF5 datatype, it is still an object in memory space (transient datatype) that has not
been added to the HDF5 containers. Only when a user commits the HDF5 datatype, it becomes persistent
in the container. Those are called named/committed datatypes. The transient H5T routines should work
on named datatypes nevertheless.
All the \ref H5T API routines that modify the HDF5 container map to one of the named datatype callback
routines in this class that the connector needs to implement.
<em>Structure for datatype callback routines, H5VLconnector.h</em>
\code
typedef struct H5VL_datatype_class_t {
void *(*commit)(void *obj, const H5VL_loc_params_t *loc_params, const char *name, hid_t type_id,
hid_t lcpl_id, hid_t tcpl_id, hid_t tapl_id, hid_t dxpl_id, void **req);
void *(*open)(void *obj, const H5VL_loc_params_t *loc_params, const char *name, hid_t tapl_id,
hid_t dxpl_id, void **req);
herr_t (*get)(void *obj, H5VL_datatype_get_args_t *args, hid_t dxpl_id, void **req);
herr_t (*specific)(void *obj, H5VL_datatype_specific_args_t *args, hid_t dxpl_id, void **req);
herr_t (*optional)(void *obj, H5VL_optional_args_t *args, hid_t dxpl_id, void **req);
herr_t (*close)(void *dt, hid_t dxpl_id, void **req);
} H5VL_datatype_class_t;
\endcode
\subsubsection subsubsecVOLRefDTypecommit datatype: commit
The <em>commit</em> callback in the named datatype class creates a datatype object in the container of the location
object and returns a pointer to the datatype structure containing information to access the datatype in
future calls.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
void *(*commit)(void *obj, H5VL_loc_params_t *loc_params, const char *name, hid_t type_id, hid_t lcpl_id, hid_t tcpl_id, hid_t tapl_id, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): Pointer to an object where the datatype needs to be committed or where the look-up of the target object needs to start.
loc_params (IN): Pointer to location parameters as explained in "Mapping the API to the Callbacks".
In this call, the location type is always H5VL_OBJECT_BY_SELF.
name (IN): The name of the datatype to be created.
typeid (IN): The transient datatype identifier to be committed.
lcpl_id (IN): The link creation property list.
tcpl_id (IN): The datatype creation property list.
tapl_id (IN): The datatype access property list.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefDTypeopen datatype: open
The <em>open</em> callback in the named datatype class opens a previously committed datatype object in the container
of the location object and returns a pointer to the datatype structure containing information to access the
datatype in future calls.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
void *(*open) (void *obj, H5VL_loc_params_t *loc_params, const char * name, hid_t tapl_id, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): Pointer to an object where the datatype needs to be opened or where the look-up
of the target object needs to start.
loc_params (IN): Pointer to location parameters as explained in "Mapping the API to the Callbacks".
In this call, the location type is always H5VL_OBJECT_BY_SELF.
name (IN): The name of the datatype to be opened.
tapl_id (IN): The datatype access property list.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefDTypeget datatype: get
The <em>get</em> callback in the named datatype class retrieves information about the named datatype as specified
in thegettypeparameter.It returns an <em>herr_t</em> indicating success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*get) (void *obj, H5VL_datatype_get_args_t *args, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): The named datatype to retrieve information from.
args (IN/OUT): A pointer to the arguments struct.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\code
/* Values for datatype 'get' operation */
typedef enum H5VL_datatype_get_t {
H5VL_DATATYPE_GET_BINARY_SIZE, /* Get size of serialized form of transient type */
H5VL_DATATYPE_GET_BINARY, /* Get serialized form of transient type */
H5VL_DATATYPE_GET_TCPL /* Datatype creation property list */
} H5VL_datatype_get_t;
/* Parameters for datatype 'get' operations */
typedef struct H5VL_datatype_get_args_t {
H5VL_datatype_get_t op_type; /* Operation to perform */
/* Parameters for each operation */
union {
/* H5VL_DATATYPE_GET_BINARY_SIZE */
struct {
size_t *size; /* Size of serialized form of datatype (OUT) */
} get_binary_size;
/* H5VL_DATATYPE_GET_BINARY */
struct {
void *buf; /* Buffer to store serialized form of datatype (OUT) */
size_t buf_size; /* Size of serialized datatype buffer */
} get_binary;
/* H5VL_DATATYPE_GET_TCPL */
struct {
hid_t tcpl_id; /* Named datatype creation property list ID (OUT) */
} get_tcpl;
} args;
} H5VL_datatype_get_args_t;
\endcode
\subsubsection subsubsecVOLRefDTypespec datatype: specific
The <em>specific</em> callback in the datatype class implements specific operations on HDF5 named datatypes as
specified in the <em>specific_type</em> parameter. It returns an <em>herr_t</em> indicating success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*specific)(void *obj, H5VL_loc_params_t *loc_params, H5VL_object_specific_args_t *args, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): The container or object where the operation needs to happen.
loc_params (IN): Pointer to location parameters as explained in "Mapping the API to the Callbacks".
args (IN/OUT): A pointer to the arguments struct.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\code
/* Values for datatype 'specific' operation */
typedef enum H5VL_datatype_specific_t {
H5VL_DATATYPE_FLUSH, /* H5Tflush */
H5VL_DATATYPE_REFRESH /* H5Trefresh */
} H5VL_datatype_specific_t;
/* Parameters for datatype 'specific' operations */
typedef struct H5VL_datatype_specific_args_t {
H5VL_datatype_specific_t op_type; /* Operation to perform */
/* Parameters for each operation */
union {
/* H5VL_DATATYPE_FLUSH */
struct {
hid_t type_id; /* Named datatype ID (IN) */
} flush;
/* H5VL_DATATYPE_REFRESH */
struct {
hid_t type_id; /* Named datatype ID (IN) */
} refresh;
} args;
} H5VL_datatype_specific_args_t;
\endcode
\subsubsection subsubsecVOLRefDTypeopt datatype: optional
The <em>optional</em> callback in the datatype class implements connector specific operations on an HDF5 datatype.
It returns an <em>herr_t</em> indicating success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*optional)(void *obj, H5VL_optional_args_t *args, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): The container or object where the operation needs to happen.
args (IN/OUT): A pointer to the arguments struct.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
Each connector that requires connector-specific operations should compare the value of the <em>op_type</em> field of
the #H5VL_optional_args_t struct with the values returned from calling #H5VLregister_opt_operation to
determine how to handle the optional call and interpret the arguments passed in the struct.
\subsubsection subsubsecVOLRefDTypeclose datatype: close
The <em>close</em> callback in the named datatype class terminates access to the datatype object and free all
resources it was consuming and returns an <em>herr_t</em> indicating success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*close) (void *dt, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
dt (IN): Pointer to the datatype object.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\subsection subsecVOLRefFile File Callbacks
The file API routines (\ref H5F) allow HDF5 users to create and manage HDF5 containers. All the \ref H5F API
routines that modify the HDF5 container map to one of the file callback routines in his class that the
connector needs to implement.
<em>File class for file API routines, H5VLconnector.h</em>
\code
typedef struct H5VL_file_class_t {
void *(*create)(const char *name, unsigned flags, hid_t fcpl_id, hid_t fapl_id, hid_t dxpl_id,
void **req);
void *(*open)(const char *name, unsigned flags, hid_t fapl_id, hid_t dxpl_id, void **req);
herr_t (*get)(void *obj, H5VL_file_get_args_t *args, hid_t dxpl_id, void **req);
herr_t (*specific)(void *obj, H5VL_file_specific_args_t *args, hid_t dxpl_id, void **req);
herr_t (*optional)(void *obj, H5VL_optional_args_t *args, hid_t dxpl_id, void **req);
herr_t (*close)(void *file, hid_t dxpl_id, void **req);
} H5VL_file_class_t;
\endcode
\subsubsection subsubsecVOLRefFilecreate file: create
The <em>create</em> callback in the file class should create a container and returns a pointer to the file structure
created by the connector containing information to access the container in future calls.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
void *(*create)(const char *name, unsigned flags, hid_t fcpl_id, hid_t fapl_id, hid_tdxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
name (IN): The name of the container to be created.
flags (IN): The creation flags of the container.
fcpl_id (IN): The file creation property list.
fapl_id (IN): The file access property list.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefFileopen file: open
The <em>open</em> callback in the file class should open a container and returns a pointer to the file structure created
by the connector containing information to access the container in future calls.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
void *(*open)(const char *name, unsigned flags, hid_t fapl_id, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
name (IN): The name of the container to open.
flags (IN): The open flags of the container.
fapl_id (IN): The file access property list.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefFileget file: get
The <em>get</em> callback in the file class should retrieve information about the container as specified in the <em>get_type</em>
parameter. It returns an <em>herr_t</em> indicating success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*get)(void *obj, H5VL_file_get_args_t *args, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): The container or object where information needs to be retrieved from.
args (IN/OUT): A pointer to the arguments struct.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\code
/* Info for H5VL_FILE_GET_CONT_INFO */
typedef struct H5VL_file_cont_info_t {
unsigned version; /* version information (keep first) */
uint64_t feature_flags; /* Container feature flags */
/* (none currently defined) */
size_t token_size; /* Size of tokens */
size_t blob_id_size; /* Size of blob IDs */
} H5VL_file_cont_info_t;
/* Values for file 'get' operation */
typedef enum H5VL_file_get_t {
H5VL_FILE_GET_CONT_INFO, /* file get container info */
H5VL_FILE_GET_FAPL, /* file access property list */
H5VL_FILE_GET_FCPL, /* file creation property list */
H5VL_FILE_GET_FILENO, /* file number */
H5VL_FILE_GET_INTENT, /* file intent */
H5VL_FILE_GET_NAME, /* file name */
H5VL_FILE_GET_OBJ_COUNT, /* object count in file */
H5VL_FILE_GET_OBJ_IDS /* object ids in file */
} H5VL_file_get_t;
/* Parameters for file 'get_name' operation */
typedef struct H5VL_file_get_name_args_t {
H5I_type_t type; /* ID type of object pointer */
size_t buf_size; /* Size of file name buffer (IN) */
char *buf; /* Buffer for file name (OUT) */
size_t *file_name_len; /* Actual length of file name (OUT) */
} H5VL_file_get_name_args_t;
/* Parameters for file 'get_obj_ids' operation */
typedef struct H5VL_file_get_obj_ids_args_t {
unsigned types; /* Type of objects to count */
size_t max_objs; /* Size of array of object IDs */
hid_t *oid_list; /* Array of object IDs (OUT) */
size_t *count; /* # of objects (OUT) */
} H5VL_file_get_obj_ids_args_t;
/* Parameters for file 'get' operations */
typedef struct H5VL_file_get_args_t {
H5VL_file_get_t op_type; /* Operation to perform */
/* Parameters for each operation */
union {
/* H5VL_FILE_GET_CONT_INFO */
struct {
H5VL_file_cont_info_t *info; /* Container info (OUT) */
} get_cont_info;
/* H5VL_FILE_GET_FAPL */
struct {
hid_t fapl_id; /* File access property list (OUT) */
} get_fapl;
/* H5VL_FILE_GET_FCPL */
struct {
hid_t fcpl_id; /* File creation property list (OUT) */
} get_fcpl;
/* H5VL_FILE_GET_FILENO */
struct {
unsigned long *fileno; /* File "number" (OUT) */
} get_fileno;
/* H5VL_FILE_GET_INTENT */
struct {
unsigned *flags; /* File open/create intent flags (OUT) */
} get_intent;
/* H5VL_FILE_GET_NAME */
H5VL_file_get_name_args_t get_name;
/* H5VL_FILE_GET_OBJ_COUNT */
struct {
unsigned types; /* Type of objects to count */
size_t *count; /* # of objects (OUT) */
} get_obj_count;
/* H5VL_FILE_GET_OBJ_IDS */
H5VL_file_get_obj_ids_args_t get_obj_ids;
} args;
} H5VL_file_get_args_t;
\endcode
\subsubsection subsubsecVOLRefFilespec file: specific
The <em>specific</em> callback in the file class implements specific operations on HDF5 files as specified in the
<em>specific_type</em> parameter. It returns an <em>herr_t</em> indicating success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*specific)(void *obj, H5VL_file_specific_args_t *args, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): The container or object where the operation needs to happen.
args (IN/OUT): A pointer to the arguments struct.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\code
/* Values for file 'specific' operation */
typedef enum H5VL_file_specific_t {
H5VL_FILE_FLUSH, /* Flush file */
H5VL_FILE_REOPEN, /* Reopen the file */
H5VL_FILE_IS_ACCESSIBLE, /* Check if a file is accessible */
H5VL_FILE_DELETE, /* Delete a file */
H5VL_FILE_IS_EQUAL /* Check if two files are the same */
} H5VL_file_specific_t;
/* Parameters for file 'specific' operations */
typedef struct H5VL_file_specific_args_t {
H5VL_file_specific_t op_type; /* Operation to perform */
/* Parameters for each operation */
union {
/* H5VL_FILE_FLUSH */
struct {
H5I_type_t obj_type; /* Type of object to use */
H5F_scope_t scope; /* Scope of flush operation */
} flush;
/* H5VL_FILE_REOPEN */
struct {
void **file; /* File object for new file (OUT) */
} reopen;
/* H5VL_FILE_IS_ACCESSIBLE */
struct {
const char *filename; /* Name of file to check */
hid_t fapl_id; /* File access property list to use */
hbool_t *accessible; /* Whether file is accessible with FAPL settings (OUT) */
} is_accessible;
/* H5VL_FILE_DELETE */
struct {
const char *filename; /* Name of file to delete */
hid_t fapl_id; /* File access property list to use */
} del;
/* H5VL_FILE_IS_EQUAL */
struct {
void *obj2; /* Second file object to compare against */
hbool_t *same_file; /* Whether files are the same (OUT) */
} is_equal;
} args;
} H5VL_file_specific_args_t;
\endcode
\subsubsection subsubsecVOLRefFileopt file: optional
The <em>optional</em> callback in the file class implements connector specific operations on an HDF5 container. It
returns an <em>herr_t</em> indicating success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*optional)(void *obj, H5VL_optional_args_t *args, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): The container or object where the operation needs to happen.
args (IN/OUT): A pointer to the arguments struct.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
Each connector that requires connector-specific operations should compare the value of the <em>op_type</em> field of
the #H5VL_optional_args_t struct with the values returned from calling #H5VLregister_opt_operation to
determine how to handle the optional call and interpret the arguments passed in the struct.
\subsubsection subsubsecVOLRefFileclose file: close
The <em>close</em> callback in the file class should terminate access to the file object and free all resources it was
consuming, and returns an <em>herr_t</em> indicating success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*close)(void *file, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
file (IN): Pointer to the file.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\subsection subsecVOLRefGrp Group Callbacks
The group API routines (\ref H5G) allow HDF5 users to create and manage HDF5 groups. All the \ref H5G API
routines that modify the HDF5 container map to one of the group callback routines in this class that the
connector needs to implement.
<em>Structure for group callback routines, H5VLconnector.h</em>
\code
typedef struct H5VL_group_class_t {
void *(*create)(void *obj, const H5VL_loc_params_t *loc_params, const char *name, hid_t lcpl_id,
hid_t gcpl_id, hid_t gapl_id, hid_t dxpl_id, void **req);
void *(*open)(void *obj, const H5VL_loc_params_t *loc_params, const char *name, hid_t gapl_id,
hid_t dxpl_id, void **req);
herr_t (*get)(void *obj, H5VL_group_get_args_t *args, hid_t dxpl_id, void **req);
herr_t (*specific)(void *obj, H5VL_group_specific_args_t *args, hid_t dxpl_id, void **req);
herr_t (*optional)(void *obj, H5VL_optional_args_t *args, hid_t dxpl_id, void **req);
herr_t (*close)(void *grp, hid_t dxpl_id, void **req);
} H5VL_group_class_t;
\endcode
\subsubsection subsubsecVOLRefGrpcreate group: create
The <em>create</em> callback in the group class creates a group object in the container of the location object and
returns a pointer to the group structure containing information to access the group in future calls.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
void *(*create)(void *obj, H5VL_loc_params_t *loc_params, const char *name, hid_t gcpl_id,hid_t gapl_id, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): Pointer to an object where the group needs to be created or where the look-up of
the target object needs to start.
loc_params (IN): Pointer to the location parameters as explained in "Mapping the API to the Callbacks".
The type can be only H5VL_OBJECT_BY_SELF in this callback.
name (IN): The name of the group to be created.
dcpl_id (IN): The group creation property list. It contains all the group creation properties in
addition to the link creation property list of the create operation (an hid_t) that can be
retrieved with the property H5VL_GRP_LCPL_ID.
gapl_id (IN): The group access property list.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefGrpopen group: open
The <em>open</em> callback in the group class opens a group object in the container of the location object and returns
a pointer to the group structure containing information to access the group in future calls.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
void *(*open)(void *obj, H5VL_loc_params_t *loc_params, const char *name, hid_t gapl_id, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): Pointer to an object where the group needs to be opened or where the look-up of the target object needs to start.
loc_params (IN): Pointer to the location parameters as explained in "Mapping the API to the Callbacks".
The type can be only H5VL_OBJECT_BY_SELF in this callback.
name (IN): The name of the group to be opened.
gapl_id (IN): The group access property list.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefGrpget group: get
The <em>get</em> callback in the group class retrieves information about the group as specified in the <em>get_type</em>
parameter. It returns an <em>herr_t</em> indicating success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*get)(void *obj, H5VL_group_get_args_t *args, hid_t dxpl_id, void **req)
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): The group object where information needs to be retrieved from.
args (IN/OUT): A pointer to the arguments struct.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\code
/* Values for group 'get' operation */
typedef enum H5VL_group_get_t {
H5VL_GROUP_GET_GCPL, /* group creation property list */
H5VL_GROUP_GET_INFO /* group info */
} H5VL_group_get_t;
/* Parameters for group 'get_info' operation */
typedef struct H5VL_group_get_info_args_t {
H5VL_loc_params_t loc_params; /* Location parameters for object access */
H5G_info_t *ginfo; /* Group info (OUT) */
} H5VL_group_get_info_args_t;
/* Parameters for group 'get' operations */
typedef struct H5VL_group_get_args_t {
H5VL_group_get_t op_type; /* Operation to perform */
/* Parameters for each operation */
union {
/* H5VL_GROUP_GET_GCPL */
struct {
hid_t gcpl_id; /* Group creation property list (OUT) */
} get_gcpl;
/* H5VL_GROUP_GET_INFO */
H5VL_group_get_info_args_t get_info; /* Group info */
} args;
} H5VL_group_get_args_t;
\endcode
\subsubsection subsubsecVOLRefGrpspec group: specific
The <em>specific</em> callback in the group class implements specific operations on HDF5 groups as specified in the
<em>specific_type</em> parameter. It returns an <em>herr_t</em> indicating success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*specific)(void *obj, H5VL_loc_params_t *loc_params, H5VL_object_specific_args_t *args, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): The container or object where the operation needs to happen.
loc_params (IN): Pointer to the location parameters as explained in "Mapping the API to the Callbacks".
args (IN/OUT): A pointer to the arguments struct.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\code
/* Values for group 'specific' operation */
typedef enum H5VL_group_specific_t {
H5VL_GROUP_MOUNT, /* Mount a file on a group */
H5VL_GROUP_UNMOUNT, /* Unmount a file on a group */
H5VL_GROUP_FLUSH, /* H5Gflush */
H5VL_GROUP_REFRESH /* H5Grefresh */
} H5VL_group_specific_t;
/* Parameters for group 'mount' operation */
typedef struct H5VL_group_spec_mount_args_t {
const char *name; /* Name of location to mount child file */
void *child_file; /* Pointer to child file object */
hid_t fmpl_id; /* File mount property list to use */
} H5VL_group_spec_mount_args_t;
/* Parameters for group 'specific' operations */
typedef struct H5VL_group_specific_args_t {
H5VL_group_specific_t op_type; /* Operation to perform */
/* Parameters for each operation */
union {
/* H5VL_GROUP_MOUNT */
H5VL_group_spec_mount_args_t mount;
/* H5VL_GROUP_UNMOUNT */
struct {
const char *name; /* Name of location to unmount child file */
} unmount;
/* H5VL_GROUP_FLUSH */
struct {
hid_t grp_id; /* Group ID (IN) */
} flush;
/* H5VL_GROUP_REFRESH */
struct {
hid_t grp_id; /* Group ID (IN) */
} refresh;
} args;
} H5VL_group_specific_args_t;
\endcode
\subsubsection subsubsecVOLRefGrpopt group: optional
The <em>optional</em> callback in the group class implements connector specific operations on an HDF5 group. It
returns an <em>herr_t</em> indicating success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*optional)(void *obj, H5VL_optional_args_t *args, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): The container or object where the operation needs to happen.
args (IN/OUT): A pointer to the arguments struct.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
Each connector that requires connector-specific operations should compare the value of the <em>op_type</em> field of
the #H5VL_optional_args_t struct with the values returned from calling #H5VLregister_opt_operation to
determine how to handle the optional call and interpret the arguments passed in the struct.
\subsubsection subsubsecVOLRefGrpclose group: close
The <em>close</em> callback in the group class terminates access to the group object and frees all resources it was
consuming, and returns an <em>herr_t</em> indicating success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*close)(void *group, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
group (IN): Pointer to the group object.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\subsection subsecVOLRefLink Link Callbacks
The link API routines (\ref H5L) allow HDF5 users to create and manage HDF5 links. All the \ref H5L API routines
that modify the HDF5 container map to one of the link callback routines in this class that the connector
needs to implement.
<em>Structure for link callback routines, H5VLconnector.h</em>
\code
typedef struct H5VL_link_class_t {
herr_t (*create)(H5VL_link_create_args_t *args, void *obj, const H5VL_loc_params_t *loc_params,
hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void **req);
herr_t (*copy)(void *src_obj, const H5VL_loc_params_t *loc_params1, void *dst_obj,
const H5VL_loc_params_t *loc_params2, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id,
void **req);
herr_t (*move)(void *src_obj, const H5VL_loc_params_t *loc_params1, void *dst_obj,
const H5VL_loc_params_t *loc_params2, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id,
void **req);
herr_t (*get)(void *obj, const H5VL_loc_params_t *loc_params, H5VL_link_get_args_t *args, hid_t dxpl_id,
void **req);
herr_t (*specific)(void *obj, const H5VL_loc_params_t *loc_params, H5VL_link_specific_args_t *args,
hid_t dxpl_id, void **req);
herr_t (*optional)(void *obj, const H5VL_loc_params_t *loc_params, H5VL_optional_args_t *args,
hid_t dxpl_id, void **req);
} H5VL_link_class_t;
\endcode
\subsubsection subsubsecVOLRefLinkcreate link: create
The <em>create</em> callback in the group class creates a hard, soft, external, or user-defined link in the container.
It returns an <em>herr_t</em> indicating success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*create)(H5VL_link_create_args_t *args, void *obj, H5VL_loc_params_t *loc_params, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void **req)
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
args (IN/OUT): A pointer to the arguments struct.
obj (IN): Pointer to an object where the link needs to be created from.
loc_params (IN): Pointer to the location parameters as explained in "Mapping the API to the Callbacks" for the source object.
lcplid (IN): The link creation property list. It contains all the link creation properties in
addition to other API parameters depending on the creation type, which will be detailed next.
laplid (IN): The link access property list.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\code
/* Link create types for VOL */
typedef enum H5VL_link_create_t {
H5VL_LINK_CREATE_HARD,
H5VL_LINK_CREATE_SOFT,
H5VL_LINK_CREATE_UD
} H5VL_link_create_t;
/* Parameters for link 'create' operations */
typedef struct H5VL_link_create_args_t {
H5VL_link_create_t op_type; /* Operation to perform */
/* Parameters for each operation */
union {
/* H5VL_LINK_CREATE_HARD */
struct {
void *curr_obj; /* Current object */
H5VL_loc_params_t curr_loc_params; /* Location parameters for current object */
} hard;
/* H5VL_LINK_CREATE_SOFT */
struct {
const char *target; /* Target of soft link */
} soft;
/* H5VL_LINK_CREATE_UD */
struct {
H5L_type_t type; /* Type of link to create */
const void *buf; /* Buffer that contains link info */
size_t buf_size; /* Size of link info buffer */
} ud;
} args;
} H5VL_link_create_args_t;
\endcode
\subsubsection subsubsecVOLRefLinkcopy link: copy
The <em>copy</em> callback in the link class copies a link within the HDF5 container. It returns an <em>herr_t</em> indicating
success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*copy)(void *src_obj, H5VL_loc_params_t *loc_params1, void *dst_obj, H5VL_loc_params_t *loc_params2, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
src_obj (IN): original/source object or file.
loc_params1 (IN): Pointer to the location parameters for the source object as explained in "Mapping the API to the Callbacks".
The type can be only H5VL_OBJECT_BY_NAME in this callback.
dst_obj (IN): destination object or file.
loc_params2 (IN): Pointer to the location parameters for the destination object as explained in "Mapping the API to the Callbacks".
The type can be only H5VL_OBJECT_BY_NAME in this callback.
lcpl_id (IN): The link creation property list.
lapl_id (IN): The link access property list.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefLinkmove link: move
The <em>move</em> callback in the link class moves a link within the HDF5 container. It returns an <em>herr_t</em> indicating
success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*move)(void *src_obj, H5VL_loc_params_t *loc_params1, void *dst_obj, H5VL_loc_params_t *loc_params2, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
src_obj (IN): original/source object or file.
loc_params1 (IN): Pointer to the location parameters for the source object as explained in "Mapping the API to the Callbacks".
The type can be only H5VL_OBJECT_BY_NAME in this callback.
dst_obj (IN): destination object or file.
loc_params2 (IN): Pointer to the location parameters for the destination object as explained in "Mapping the API to the Callbacks".
The type can be only H5VL_OBJECT_BY_NAME in this callback.
lcpl_id (IN): The link creation property list.
lapl_id (IN): The link access property list.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefLinkget link: get
The <em>get</em> callback in the link class retrieves information about links as specified in the <em>get_type</em> parameter.
It returns an <em>herr_t</em> indicating success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*get)(void *obj, H5VL_loc_params_t *loc_params, H5VL_link_get_args_t *args, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): The file or group object where information needs to be retrieved from.
loc_params (IN): Pointer to the location parameters for the destination object as explained in "Mapping the API to the Callbacks".
The type can be only H5VL_OBJECT_BY_NAME or H5VL_OBJECT_BY_IDX in this callback.
args (IN/OUT): A pointer to the arguments struct.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\code
/* Values for link 'get' operation */
typedef enum H5VL_link_get_t {
H5VL_LINK_GET_INFO, /* link info */
H5VL_LINK_GET_NAME, /* link name */
H5VL_LINK_GET_VAL /* link value */
} H5VL_link_get_t;
/* Parameters for link 'get' operations */
typedef struct H5VL_link_get_args_t {
H5VL_link_get_t op_type; /* Operation to perform */
/* Parameters for each operation */
union {
/* H5VL_LINK_GET_INFO */
struct {
H5L_info2_t *linfo; /* Pointer to link's info (OUT) */
} get_info;
/* H5VL_LINK_GET_NAME */
struct {
size_t name_size; /* Size of link name buffer (IN) */
char *name; /* Buffer for link name (OUT) */
size_t *name_len; /* Actual length of link name (OUT) */
} get_name;
/* H5VL_LINK_GET_VAL */
struct {
size_t buf_size; /* Size of link value buffer (IN) */
void *buf; /* Buffer for link value (OUT) */
} get_val;
} args;
} H5VL_link_get_args_t;
\endcode
\subsubsection subsubsecVOLRefLinkspec link: specific
The <em>specific</em> callback in the link class implements specific operations on HDF5 links as specified in
the <em>specific_type</em> parameter. It returns an <em>herr_t</em> indicating success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*specific)(void *obj, H5VL_loc_params_t *loc_params, H5VL_link_specific_args_t *args, hid_t dxpl_id, void **req)
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): The location object where operation needs to happen.
loc_params (IN): Pointer to the location parameters for the destination object as explained in "Mapping the API to the Callbacks".
args (IN/OUT): A pointer to the arguments struct.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\code
/* Values for link 'specific' operation */
typedef enum H5VL_link_specific_t {
H5VL_LINK_DELETE, /* H5Ldelete(_by_idx) */
H5VL_LINK_EXISTS, /* link existence */
H5VL_LINK_ITER /* H5Literate/visit(_by_name) */
} H5VL_link_specific_t;
/* Parameters for link 'iterate' operation */
typedef struct H5VL_link_iterate_args_t {
hbool_t recursive; /* Whether iteration is recursive */
H5_index_t idx_type; /* Type of index to iterate over */
H5_iter_order_t order; /* Order of index iteration */
hsize_t *idx_p; /* Start/stop iteration index (OUT) */
H5L_iterate2_t op; /* Iteration callback function */
void *op_data; /* Iteration callback context */
} H5VL_link_iterate_args_t;
/* Parameters for link 'specific' operations */
typedef struct H5VL_link_specific_args_t {
H5VL_link_specific_t op_type; /* Operation to perform */
/* Parameters for each operation */
union {
/* H5VL_LINK_DELETE */
/* No args */
/* H5VL_LINK_EXISTS */
struct {
hbool_t *exists; /* Whether link exists (OUT) */
} exists;
/* H5VL_LINK_ITER */
H5VL_link_iterate_args_t iterate;
} args;
} H5VL_link_specific_args_t;
\endcode
\subsubsection subsubsecVOLRefLinkopt link: optional
The <em>optional</em> callback in the link class implements connector specific operations on an HDF5 link. It returns
an <em>herr_t</em> indicating success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*optional)(void *obj, const H5VL_loc_params_t *loc_params, H5VL_optional_args_t *args, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): The container or object where operation needs to happen.
loc_params (IN): Pointer to the location parameters for the destination object as explained in "Mapping the API to the Callbacks".
args (IN/OUT): A pointer to the arguments struct.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
Each connector that requires connector-specific operations should compare the value of the <em>op_type</em> field of
the #H5VL_optional_args_t struct with the values returned from calling #H5VLregister_opt_operation to
determine how to handle the optional call and interpret the arguments passed in the struct.
\subsection subsecVOLRefObj Object Callbacks
The object API routines (\ref H5O) allow HDF5 users to manage HDF5 group, dataset, and named datatype
objects. All the \ref H5O API routines that modify the HDF5 container map to one of the object callback
routines in this class that the connector needs to implement.
<em>Structure for object callback routines, H5VLconnector.h</em>
\code
typedef struct H5VL_object_class_t {
void *(*open)(void *obj, const H5VL_loc_params_t *loc_params, H5I_type_t *opened_type, hid_t dxpl_id,
void **req);
herr_t (*copy)(void *src_obj, const H5VL_loc_params_t *loc_params1, const char *src_name, void *dst_obj,
const H5VL_loc_params_t *loc_params2, const char *dst_name, hid_t ocpypl_id, hid_t lcpl_id,
hid_t dxpl_id, void **req);
herr_t (*get)(void *obj, const H5VL_loc_params_t *loc_params, H5VL_object_get_args_t *args, hid_t dxpl_id,
void **req);
herr_t (*specific)(void *obj, const H5VL_loc_params_t *loc_params, H5VL_object_specific_args_t *args,
hid_t dxpl_id, void **req);
herr_t (*optional)(void *obj, const H5VL_loc_params_t *loc_params, H5VL_optional_args_t *args,
hid_t dxpl_id, void **req);
} H5VL_object_class_t;
\endcode
\subsubsection subsubsecVOLRefObjopen object: open
The <em>open</em> callback in the object class opens the object in the container of the location object and returns a
pointer to the object structure containing information to access the object in future calls.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
void *(*open)(void *obj, H5VL_loc_params_t *loc_params, H5I_type_t *opened_type, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): The container or object where operation needs to happen.
loc_params (IN): Pointer to the location parameters for the destination object as explained in "Mapping the API to the Callbacks".
opened_type (OUT): Buffer to return the type of the object opened (H5I_GROUP or H5I_DATASET or H5I_DATATYPE).
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefObjcopy object: copy
The <em>copy</em> callback in the object class copies the object from the source object to the destination object. It
returns an <em>herr_t</em> indicating success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*copy)(void *src_obj, H5VL_loc_params_t *loc_params1, const char *src_name, void *dst_obj, H5VL_loc_params_t *loc_params2, const char *dst_name, hid_t ocpypl_id, hid_t lcpl_id, hid_t dxpl_id, void **req)
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
src_obj (IN): Pointer to location of the source object to be copied.
loc_params1 (IN): Pointer to the location parameters for the source object as explained in "Mapping the API to the Callbacks".
The type can be only H5VL_OBJECT_BY_SELF in this callback.
src_name (IN): Name of the source object to be copied.
dst_obj (IN): Pointer to location of the destination object or file.
loc_params2 (IN): Pointer to the location parameters for the destination object as explained in "Mapping the API to the Callbacks".
The type can be only H5VL_OBJECT_BY_SELF in this callback.
dst_name (IN): Name o be assigned to the new copy.
ocpypl_id (IN): The object copy property list.
lcpl_id (IN): The link creation property list.
dxpl_id (IN): The data transfer property list.
req (IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefObjget object: get
The <em>get</em> callback in the object class retrieves information about the object as specified in
the <em>get_type</em> parameter.It returns an <em>herr_t</em> indicating success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*get)(void *obj, H5VL_loc_params_t *loc_params, H5VL_object_get_args_t *args, hid_t dxpl_id, void **req)
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): A location object where information needs to be retrieved from.
loc_params (IN): Pointer to the location parameters for the destination object as explained in "Mapping the API to the Callbacks".
args (IN/OUT): A pointer to the arguments struct.
dxpl_id (IN): The data transfer property list.
req IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\code
/* Values for object 'get' operation */
typedef enum H5VL_object_get_t {
H5VL_OBJECT_GET_FILE, /* object file */
H5VL_OBJECT_GET_NAME, /* object name */
H5VL_OBJECT_GET_TYPE, /* object type */
H5VL_OBJECT_GET_INFO /* H5Oget_info(_by_idx|name) */
} H5VL_object_get_t;
/* Parameters for object 'get' operations */
typedef struct H5VL_object_get_args_t {
H5VL_object_get_t op_type; /* Operation to perform */
/* Parameters for each operation */
union {
/* H5VL_OBJECT_GET_FILE */
struct {
void **file; /* File object (OUT) */
} get_file;
/* H5VL_OBJECT_GET_NAME */
struct {
size_t buf_size; /* Size of name buffer (IN) */
char *buf; /* Buffer for name (OUT) */
size_t *name_len; /* Actual length of name (OUT) */
} get_name;
/* H5VL_OBJECT_GET_TYPE */
struct {
H5O_type_t *obj_type; /* Type of object (OUT) */
} get_type;
/* H5VL_OBJECT_GET_INFO */
struct {
unsigned fields; /* Flags for fields to retrieve */
H5O_info2_t *oinfo; /* Pointer to object info (OUT) */
} get_info;
} args;
} H5VL_object_get_args_t;
\endcode
\subsubsection subsubsecVOLRefObjspec object: specific
The <em>specific</em> callback in the object class implements specific operations on HDF5 objects as specified in
the <em>specific_type</em> parameter. It returns an <em>herr_t</em> indicating success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*specific)(void *obj, H5VL_loc_params_t *loc_params, H5VL_object_specific_args_t *args, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): A location object where he operation needs to happen.
loc_params (IN): Pointer to the location parameters for the destination object as explained in "Mapping the API to the Callbacks".
args (IN/OUT): A pointer to the arguments struct.
dxpl_id (IN): The data transfer property list.
req IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\code
/* Values for object 'specific' operation */
typedef enum H5VL_object_specific_t {
H5VL_OBJECT_CHANGE_REF_COUNT, /* H5Oincr/decr_refcount */
H5VL_OBJECT_EXISTS, /* H5Oexists_by_name */
H5VL_OBJECT_LOOKUP, /* Lookup object */
H5VL_OBJECT_VISIT, /* H5Ovisit(_by_name) */
H5VL_OBJECT_FLUSH, /* H5{D|G|O|T}flush */
H5VL_OBJECT_REFRESH /* H5{D|G|O|T}refresh */
} H5VL_object_specific_t;
/* Parameters for object 'visit' operation */
typedef struct H5VL_object_visit_args_t {
H5_index_t idx_type; /* Type of index to iterate over */
H5_iter_order_t order; /* Order of index iteration */
unsigned fields; /* Flags for fields to provide in 'info' object for 'op' callback */
H5O_iterate2_t op; /* Iteration callback function */
void *op_data; /* Iteration callback context */
} H5VL_object_visit_args_t;
/* Parameters for object 'specific' operations */
typedef struct H5VL_object_specific_args_t {
H5VL_object_specific_t op_type; /* Operation to perform */
/* Parameters for each operation */
union {
/* H5VL_OBJECT_CHANGE_REF_COUNT */
struct {
int delta; /* Amount to modify object's refcount */
} change_rc;
/* H5VL_OBJECT_EXISTS */
struct {
hbool_t *exists; /* Whether object exists (OUT) */
} exists;
/* H5VL_OBJECT_LOOKUP */
struct {
H5O_token_t *token_ptr; /* Pointer to token for lookup (OUT) */
} lookup;
/* H5VL_OBJECT_VISIT */
H5VL_object_visit_args_t visit;
/* H5VL_OBJECT_FLUSH */
struct {
hid_t obj_id; /* Object ID (IN) */
} flush;
/* H5VL_OBJECT_REFRESH */
struct {
hid_t obj_id; /* Object ID (IN) */
} refresh;
} args;
} H5VL_object_specific_args_t;
\endcode
\subsubsection subsubsecVOLRefObjopt object: optional
The <em>optional</em> callback in the object class implements connector specific operations on an HDF5 object. It
returns an <em>herr_t</em> indicating success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*optional)(void *obj, const H5VL_loc_params_t *loc_params, H5VL_optional_args_t *args, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): A container or object where he operation needs to happen.
loc_params (IN): Pointer to the location parameters for the destination object as explained in "Mapping the API to the Callbacks".
args (IN/OUT): A pointer to the arguments struct.
dxpl_id (IN): The data transfer property list.
req IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
Each connector that requires connector-specific operations should compare the value of the <em>op_type</em> field of
the #H5VL_optional_args_t struct with the values returned from calling #H5VLregister_opt_operation to
determine how to handle the optional call and interpret the arguments passed in the struct.
\subsection subsecVOLRefIntrospect Introspection Callbacks
<em>Structure for VOL connector introspection callback routines, H5VLconnector.h</em>
\code
typedef struct H5VL_introspect_class_t {
herr_t (*get_conn_cls)(void *obj, H5VL_get_conn_lvl_t lvl, const struct H5VL_class_t **conn_cls);
herr_t (*get_cap_flags)(const void *info, uint64_t *cap_flags);
herr_t (*opt_query)(void *obj, H5VL_subclass_t cls, int opt_type, uint64_t *flags);
} H5VL_introspect_class_t;
\endcode
\subsubsection subsubsecVOLRefIntrospectcls introspect: get_conn_cls
Get a connector's #H5VL_class_t struct.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*get_conn_cls)(void *obj, H5VL_get_conn_lvl_t lvl, const struct H5VL_class_t **conn_cls);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): The VOL object.
lvl (IN): Current or terminal connector.
cls (OUT): A const pointer to the connector.
\endcode
</td>
</tr>
</table>
<em>The "lvl" argument is an enum:</em>
\code
/* "Levels" for 'get connector class' introspection callback */
typedef enum H5VL_get_conn_lvl_t {
H5VL_GET_CONN_LVL_CURR, /* Get "current" connector (for this object) */
H5VL_GET_CONN_LVL_TERM /* Get "terminal" connector (for this object) */
/* (Recursively called, for pass-through connectors) */
/* (Connectors that "split" must choose which connector to return) */
} H5VL_get_conn_lvl_t;
\endcode
\subsubsection subsubsecVOLRefIntrospecflags introspect: get_cap_flags
Get a connector's capability flags.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*get_cap_flags)(const void *info, unsigned *cap_flags)
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
info (IN): A const pointer to pertinent VOL info.
cap_flags (OUT): A pointer to capability flags.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefIntrospecquery introspect: opt_query
Query a class for a capability or functionality.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*opt_query)(void *obj, H5VL_subclass_t cls, int opt_type, hbool_t *supported);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): The VOL object.
cls (IN): The VOL 'class' to query.
opt_type (IN): The specific option to query.
supported (OUT): Whether the operation is supported or not.
\endcode
</td>
</tr>
</table>
<em>The "cls" argument is an enum:</em>
\code
// Enum type for each VOL subclass
// (Used for various queries, etc)
typedef enum H5VL_subclass_t {
H5VL_SUBCLS_NONE, // Operations outside of a subclass
H5VL_SUBCLS_INFO, // 'Info' subclass
H5VL_SUBCLS_WRAP, // 'Wrap' subclass
H5VL_SUBCLS_ATTR, // 'Attribute' subclass
H5VL_SUBCLS_DATASET, // 'Dataset' subclass
H5VL_SUBCLS_DATATYPE, // 'Named datatype' subclass
H5VL_SUBCLS_FILE, // 'File' subclass
H5VL_SUBCLS_GROUP, // 'Group' subclass
H5VL_SUBCLS_LINK, // 'Link' subclass
H5VL_SUBCLS_OBJECT, // 'Object' subclass
H5VL_SUBCLS_REQUEST, // 'Request' subclass
H5VL_SUBCLS_BLOB, // 'Blob' subclass
H5VL_SUBCLS_TOKEN // 'Token' subclass
} H5VL_subclass_t;
\endcode
\subsection subsecVOLRefReq Request (Async) Callbacks
<em>Structure for async request callback routines, H5VLconnector.h</em>
\code
typedef struct H5VL_request_class_t {
herr_t (*wait)(void *req, uint64_t timeout, H5VL_request_status_t *status);
herr_t (*notify)(void *req, H5VL_request_notify_t cb, void *ctx);
herr_t (*cancel)(void *req, H5VL_request_status_t *status);
herr_t (*specific)(void *req, H5VL_request_specific_args_t *args);
herr_t (*optional)(void *req, H5VL_optional_args_t *args);
herr_t (*free)(void *req);
} H5VL_request_class_t;
\endcode
\subsubsection subsubsecVOLRefReqwait request: wait
Wait (with a timeout) for an async operation to complete. Releases the request if the operation has completed
and the connector callback succeeds.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*wait)(void *req, uint64_t timeout, H5VL_request_status_t *status);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
req (IN): The async request on which to wait.
timeout (IN): The timeout value.
status (IN): The status.
\endcode
</td>
</tr>
</table>
<em>The "status" argument is an enum:</em>
\code
/* Status values for async request operations */
typedef enum H5VL_request_status_t {
H5VL_REQUEST_STATUS_IN_PROGRESS, /* Operation has not yet completed */
H5VL_REQUEST_STATUS_SUCCEED, /* Operation has completed, successfully */
H5VL_REQUEST_STATUS_FAIL, /* Operation has completed, but failed */
H5VL_REQUEST_STATUS_CANT_CANCEL, /* An attempt to cancel this operation was made, but it */
/* can't be canceled immediately. The operation has */
/* not completed successfully or failed, and is not yet */
/* in progress. Another attempt to cancel it may be */
/* attempted and may (or may not) succeed. */
H5VL_REQUEST_STATUS_CANCELED /* Operation has not completed and was canceled */
} H5VL_request_status_t;
\endcode
\subsubsection subsubsecVOLRefReqnotify request: notify
Registers a user callback to be invoked when an asynchronous operation completes. Releases the request if
connector callback succeeds.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*notify)(void *req, H5VL_request_notify_t cb, void *ctx);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
req (IN): The async request that will receive the notify callback.
cb (IN): The notify callback for the request.
ctx (IN): The request's context.
\endcode
</td>
</tr>
</table>
<em>The "cb" argument is an enum:</em>
\code
typedef herr_t (*H5VL_request_notify_t)(void *ctx, H5ES_status_t status)
\endcode
\subsubsection subsubsecVOLRefReqcancel request: cancel
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*cancel)(void *req, H5VL_request_status_t *status);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
req (IN): The async request to be cancelled.
status (IN): The status.
\endcode
</td>
</tr>
</table>
<em>The "status" argument is an enum:</em>
\code
/* Status values for async request operations */
typedef enum H5VL_request_status_t {
H5VL_REQUEST_STATUS_IN_PROGRESS, /* Operation has not yet completed */
H5VL_REQUEST_STATUS_SUCCEED, /* Operation has completed, successfully */
H5VL_REQUEST_STATUS_FAIL, /* Operation has completed, but failed */
H5VL_REQUEST_STATUS_CANT_CANCEL, /* An attempt to cancel this operation was made, but it */
/* can't be canceled immediately. The operation has */
/* not completed successfully or failed, and is not yet */
/* in progress. Another attempt to cancel it may be */
/* attempted and may (or may not) succeed. */
H5VL_REQUEST_STATUS_CANCELED /* Operation has not completed and was canceled */
} H5VL_request_status_t;
\endcode
\subsubsection subsubsecVOLRefReqspec request: specific
Perform a specific operation on an asynchronous request.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*specific)(void *req, H5VL_request_specific_args_t *args);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
req (IN): The async request on which to perform the operation.
args (IN/OUT): A pointer to the arguments struct.
\endcode
</td>
</tr>
</table>
\code
/* Values for async request 'specific' operation */
typedef enum H5VL_request_specific_t {
H5VL_REQUEST_GET_ERR_STACK, /* Retrieve error stack for failed operation */
H5VL_REQUEST_GET_EXEC_TIME /* Retrieve execution time for operation */
} H5VL_request_specific_t;
/* Parameters for request 'specific' operations */
typedef struct H5VL_request_specific_args_t {
H5VL_request_specific_t op_type; /* Operation to perform */
/* Parameters for each operation */
union {
/* H5VL_REQUEST_GET_ERR_STACK */
struct {
hid_t err_stack_id; /* Error stack ID for operation (OUT) */
} get_err_stack;
/* H5VL_REQUEST_GET_EXEC_TIME */
struct {
uint64_t *exec_ts; /* Timestamp for start of task execution (OUT) */
uint64_t *exec_time; /* Duration of task execution (in ns) (OUT) */
} get_exec_time;
} args;
} H5VL_request_specific_args_t;
\endcode
\subsubsection subsubsecVOLRefReqopt request: optional
Perform a connector-specific operation for a request.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*optional)(void *req, H5VL_optional_args_t *args);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
req (IN): The async request on which to perform the operation.
args (IN/OUT): A pointer to the arguments struct.
\endcode
</td>
</tr>
</table>
Each connector that requires connector-specific operations should compare the value of the <em>op_type</em> field of
the #H5VL_optional_args_t struct with the values returned from calling #H5VLregister_opt_operation to
determine how to handle the optional call and interpret the arguments passed in the struct.
\subsubsection subsubsecVOLRefReqfree request: free
Frees an asynchronous request.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*free)(void *req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
req (IN): The async request to be freed.
\endcode
</td>
</tr>
</table>
\subsection subsecVOLRefBlob Blob Callbacks
<em>Structure for blob callback routines, H5VLconnector.h</em>
\code
typedef struct H5VL_blob_class_t {
herr_t (*put)(void *obj, const void *buf, size_t size, void *blob_id, void *ctx);
herr_t (*get)(void *obj, const void *blob_id, void *buf, size_t size, void *ctx);
herr_t (*specific)(void *obj, void *blob_id, H5VL_blob_specific_args_t *args);
herr_t (*optional)(void *obj, void *blob_id, H5VL_optional_args_t *args);
} H5VL_blob_class_t;
\endcode
\subsubsection subsubsecVOLRefBlobput blob: put
Put a blob through the VOL.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*put)(void *obj, const void *buf, size_t size, void *blob_id, void *ctx);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): Pointer to the blob container.
buf (IN): Pointer to the blob.
size (IN): Size of the blob.
blob_id (OUT): Pointer to the blob's connector-specific ID.
ctx (IN): Connector-specific blob context.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefBlobget blob: get
Get a blob through the VOL.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*get)(void *obj, const void *blob_id, void *buf, size_t size, void *ctx);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): Pointer to the blob container.
blob_id (IN): Pointer to the blob's connector-specific ID.
buf (IN/OUT): Pointer to the blob.
size (IN): Size of the blob.
ctx (IN): Connector-specific blob context.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefBlobspec blob: specific
Perform a defined operation on a blob via the VOL.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*specific)(void *obj, void *blob_id, H5VL_blob_specific_args_t *args);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): Pointer to the blob container.
blob_id (IN): Pointer to the blob's connector-specific ID.
args (IN/OUT): A pointer to the arguments struct.
\endcode
</td>
</tr>
</table>
\code
/* Values for 'blob' 'specific' operation */
typedef enum H5VL_blob_specific_t {
H5VL_BLOB_DELETE, /* Delete a blob (by ID) */
H5VL_BLOB_ISNULL, /* Check if a blob ID is "null" */
H5VL_BLOB_SETNULL /* Set a blob ID to the connector's "null" blob ID value */
} H5VL_blob_specific_t;
/* Parameters for blob 'specific' operations */
typedef struct H5VL_blob_specific_args_t {
H5VL_blob_specific_t op_type; /* Operation to perform */
/* Parameters for each operation */
union {
/* H5VL_BLOB_DELETE */
/* No args */
/* H5VL_BLOB_ISNULL */
struct {
hbool_t *isnull; /* Whether blob ID is "null" (OUT) */
} is_null;
/* H5VL_BLOB_SETNULL */
/* No args */
} args;
} H5VL_blob_specific_args_t;
\endcode
\subsubsection subsubsecVOLRefBlobopt blob: optional
Perform a connector-specific operation on a blob via the VOL
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*optional)(void *obj, void *blob_id, H5VL_optional_args_t *args);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): Pointer to the blob container.
blob_id (IN): Pointer to the blob's connector-specific ID.
args (IN/OUT): A pointer to the arguments struct.
\endcode
</td>
</tr>
</table>
Each connector that requires connector-specific operations should compare the value of the <em>op_type</em> field of
the #H5VL_optional_args_t struct with the values returned from calling #H5VLregister_opt_operation to
determine how to handle the optional call and interpret the arguments passed in the struct
\subsection subsecVOLRefToken Token Callbacks
<em>Structure for token callback routines, H5VLconnector.h</em>
\code
typedef struct H5VL_token_class_t {
herr_t (*cmp)(void *obj, const H5O_token_t *token1, const H5O_token_t *token2, int *cmp_value);
herr_t (*to_str)(void *obj, H5I_type_t obj_type, const H5O_token_t *token, char **token_str);
herr_t (*from_str)(void *obj, H5I_type_t obj_type, const char *token_str, H5O_token_t *token);
} H5VL_token_class_t;
\endcode
\subsubsection subsubsecVOLRefTokencmp token: cmp
Compares two tokens and outputs a value like strcmp.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*cmp)(void *obj, const H5O_token_t *token1, const H5O_token_t *token2, int *cmp_value);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): The underlying VOL object.
token1 (IN): The first token to compare.
token2 (IN): The second token to compare.
cmp_value (OUT): A value like strcmp.
\endcode
</td>
</tr>
</table>
\subsubsection subsubsecVOLRefTokento token: to_str
Converts a token to a string representation.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*to_str)(void *obj, H5I_type_t obj_type, const H5O_token_t *token, char **token_str)
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): The underlying VOL object.
obj_type (IN): The type of the object.
token (IN): The token to turn into a string representation.
token_str (OUT): The string representation of the token.
\endcode
</td>
</tr>
</table>
<em>The "obj_type" argument is an enum: (from H5Ipublic.h)</em>
\snippet H5Ipublic.h H5I_type_t_snip
The only values which should be used for this call are:
\li #H5I_GROUP
\li #H5I_DATATYPE
\li #H5I_DATASET
\li #H5I_MAP
as these are the only objects for which tokens are valid.
\subsubsection subsubsecVOLRefTokenfrom token: from_str
Converts a string representation of a token to a token.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*from_str)(void *obj, H5I_type_t obj_type, const char *token_str, H5O_token_t *token);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): The underlying VOL object.
obj_type (IN): The type of the object.
token_str (IN): The string representation of the token.
token (OUT): The token reated from the string representation.
\endcode
</td>
</tr>
</table>
<em>The "obj_type" argument is an enum: (from H5Ipublic.h)</em>
\snippet H5Ipublic.h H5I_type_t_snip
The only values which should be used for this call are:
\li #H5I_GROUP
\li #H5I_DATATYPE
\li #H5I_DATASET
\li #H5I_MAP
as these are the only objects for which tokens are valid.
\subsection subsecVOLRefOpt Optional Generic Callback
A <em>generic</em> optional callback is provided for services that are specific to a connector.
The <em>optional</em> callback has the following definition. It returns an <em>herr_t</em> indicating success or failure.
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t (*optional)(void *obj, H5VL_optional_args_t *args, hid_t dxpl_id, void **req);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): A container or object where he operation needs to happen.
args (IN/OUT): A pointer to the arguments struct.
dxpl_id (IN): The data transfer property list.
req IN/OUT): A pointer to the asynchronous request of the operation created by the connector.
\endcode
</td>
</tr>
</table>
\section secVOLNew New VOL API Routines
API routines have been added to the HDF5 library to manage VOL connectors. This section details each
new API call and explains its intended usage. Additionally, a set of API calls that map directly to the VOL
callbacks themselves have been added to aid in the development of passthrough connectors which can be
stacked and/or split. A list of these API calls is given in an appendix.
\subsection subsecVOLNewPub H5VLpublic.h
The API calls in this header are for VOL management and general use (i.e., not limited to VOL connector authors).
\subsubsection subsubsecVOLNewPubregname H5VLregister_connector_by_name
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
hid_t H5VLregister_connector_by_name(const char *connector_name, hid_t vipl_id);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
connector_name (IN): The connector name to search for and register.
vipl_id (IN): An ID for a VOL initialization property list (vipl).
\endcode
</td>
</tr>
</table>
Registers a VOL connector with the HDF5 library given the name of the connector and returns an identifier
for it (#H5I_INVALID_HID on errors). If the connector is already registered, the library will create a new
identifier for it and returns it to the user; otherwise the library will search the plugin path for a connector
of that name, loading and registering it, returning an ID for it, if found. See the \ref H5VL_UG for more
information on loading plugins and the search paths.
\subsubsection subsubsecVOLNewPubregval H5VLregister_connector_by_value
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
hid_t H5VLregister_connector_by_value(H5VL_class_value_t connector_value, hid_t vipl_id);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
connector_value (IN): The connector value to search for and register.
vipl_id (IN): An ID for a VOL initialization property list (vipl).
\endcode
</td>
</tr>
</table>
Registers a VOL connector with the HDF5 library given a value for the connector and returns an identifier
for it (#H5I_INVALID_HID on errors). If the connector is already registered, the library will create a new
identifier for it and returns it to the user; otherwise the library will search the plugin path for a connector
of that name, loading and registering it, returning an ID for it, if found. See the VOL User Guide for more
information on loading plugins and the search paths.
\subsubsection subsubsecVOLNewPubis_name H5VLis_connector_registered_by_name
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
htri_t H5VLis_connector_registered_by_name(const char *name);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
name (IN): The connector name to check for.
\endcode
</td>
</tr>
</table>
Checks if a VOL connector is registered with the library given the connector name and returns TRUE/FALSE
on success, otherwise it returns a negative value.
\subsubsection subsubsecVOLNewPubis_value H5VLis_connector_registered_by_value
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
htri_t H5VLis_connector_registered_by_value(H5VL_class_value_t connector_value);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
connector_value (IN): The connector value to check for.
\endcode
</td>
</tr>
</table>
Checks if a VOL connector is registered with the library given the connector value and returns TRUE/FALSE
on success, otherwise it returns a negative value.
\subsubsection subsubsecVOLNewPubget_id H5VLget_connector_id
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
hid_t H5VLget_connector_id(hid_t obj_id);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj_id (IN): An ID for an HDF5 VOL object.
\endcode
</td>
</tr>
</table>
Given a VOL object such as a dataset or an attribute, this function returns an identifier for its associated
connector. If the ID is not a VOL object (such as a dataspace or uncommitted datatype), #H5I_INVALID_HID
is returned. The identifier must be released with a call to #H5VLclose.
\subsubsection subsubsecVOLNewPubget_by_name H5VLget_connector_id_by_name
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
hid_t H5VLget_connector_id_by_name(const char *name);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
name (IN): The connector name to check for.
\endcode
</td>
</tr>
</table>
Given a connector name that is registered with the library, this function returns an identifier for the connector.
If the connector is not registered with the library, #H5I_INVALID_HID is returned.The identifier must be
released with a call to #H5VLclose.
\subsubsection subsubsecVOLNewPubget_by_value H5VLget_connector_id_by_value
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
hid_t H5VLget_connector_id_by_value(H5VL_class_value_t connector_value);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
connector_value (IN): The connector value to check for.
\endcode
</td>
</tr>
</table>
Given a connector value that is registered with the library, this function returns an identifier for the connector.
If the connector is not registered with the library, #H5I_INVALID_HID is returned.The identifier must be
released with a call to #H5VLclose.
\subsubsection subsubsecVOLNewPubget_name H5VLget_connector_name
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
ssize_t H5VLget_connector_name(hid_t id, char *name /*out*/, size_t size);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
id (IN): The object identifier to check.
name (OUT): Buffer pointer to put the connector name. If NULL, the library just returns thesize required to store the connector name.
size (IN): the size of the passed in buffer.
\endcode
</td>
</tr>
</table>
Retrieves the name of a VOL connector given an object identifier that was created/opened ith it. On
success, the name length is returned.
\subsubsection subsubsecVOLNewPubclose H5VLclose
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t H5VLclose(hid_t connector_id);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
connector_id (IN): A valid identifier of the connector to close.
\endcode
</td>
</tr>
</table>
Shuts down access to the connector that the identifier points to and release resources associated with it.
\subsubsection subsubsecVOLNewPubunreg H5VLunregister_connector
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t H5VLunregister_connector(hid_t connector_id);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
connector_id (IN): A valid identifier of the connector to unregister.
\endcode
</td>
</tr>
</table>
Unregisters a connector from the library and return a positive value on success otherwise return a negative
value. The native VOL connector cannot be unregistered (this will return a negative #herr_t value).
\subsubsection subsubsecVOLNewPubquery H5VLquery_optional
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t H5VLquery_optional(hid_t obj_id, H5VL_subclass_t subcls, int opt_type, uint64_t *flags);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj_id (IN): A valid identifier of a VOL-managed object.
subcls (IN): The subclass of the optional operation.
opt_type (IN): The optional operation. The native VOL connector uses hard-coded values. Other
VOL connectors get this value when the optional operations are registered.
flags (OUT): Bitwise flags indicating support and behavior.
\endcode
</td>
</tr>
</table>
Determines if a connector or connector stack (determined from the passed-in object) supports an optional
operation. The returned flags (listed below) not only indicate whether the operation is supported or not,
but also give a sense of the option's behavior (useful for pass-through connectors).
Bitwise query flag values:
\code
#define H5VL_OPT_QUERY_SUPPORTED 0x0001 /* VOL connector supports this operation */
#define H5VL_OPT_QUERY_READ_DATA 0x0002 /* Operation reads data for object */
#define H5VL_OPT_QUERY_WRITE_DATA 0x0004 /* Operation writes data for object */
#define H5VL_OPT_QUERY_QUERY_METADATA 0x0008 /* Operation reads metadata for object */
#define H5VL_OPT_QUERY_MODIFY_METADATA 0x0010 /* Operation modifies metadata for object */
#define H5VL_OPT_QUERY_COLLECTIVE 0x0020 /* Operation is collective (operations without this flag are assumed to be independent) */
#define H5VL_OPT_QUERY_NO_ASYNC 0x0040 /* Operation may NOT be executed asynchronously */
#define H5VL_OPT_QUERY_MULTI_OBJ 0x0080 /* Operation involves multiple objects */
\endcode
\subsection subsecVOLNewConn H5VLconnector.h
This functionality is intended for VOL connector authors and includes helper functions that are useful for
writing connectors.
API calls to manage optional operations are also found in this header file. These are discussed in the section
on optional operations, above.
\subsubsection subsubsecVOLNewConnreg H5VLregister_connector
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
hid_t H5VLregister_connector(const H5VL_class_t *cls, hid_t vipl_id);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
cls (IN): A pointer to the connector structure to register.
vipl_id (IN): An ID for a VOL initialization property list (vipl).
\endcode
</td>
</tr>
</table>
Registers a user-defined VOL connector with the HDF5 library and returns an identifier for that connector
(#H5I_INVALID_HID on errors). This function is used when the application has direct access to the connector
it wants to use and is able to obtain a pointer for the connector structure to pass to the HDF5 library.
\subsubsection subsubsecVOLNewConnobj H5VLobject
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
void *H5VLobject(hid_t obj_id);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj_id (IN): identifier of the object to dereference.
\endcode
</td>
</tr>
</table>
Retrieves a pointer to the VOL object from an HDF5 file or object identifier.
\subsubsection subsubsecVOLNewConnget H5VLget_file_type
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
hid_t H5VLget_file_type(void *file_obj, hid_t connector_id, hid_t dtype_id);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
file_obj (IN): pointer to a file or file object's connector-specific data.
connector_id (IN): A valid identifier of the connector to use.
dtype_id (IN): A valid identifier for the type.
\endcode
</td>
</tr>
</table>
Returns a copy of the <em>dtype_id</em> parameter but with the location set to be in the file. Returns a negative
value (#H5I_INVALID_HID) on errors.
\subsubsection subsubsecVOLNewConnpeek_name H5VLpeek_connector_id_by_name
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
hid_t H5VLpeek_connector_id_by_name(const char *name);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
name (IN): name of the connector to query.
\endcode
</td>
</tr>
</table>
Retrieves the ID for a registered VOL connector based on a connector name. This is done without duplicating
the ID and transferring ownership to the caller (as it normally the case in the HDF5 library). The ID returned
from this operation should not be closed. This is intended for use by VOL connectors to find their own ID.
Returns a negative value (#H5I_INVALID_HID) on errors.
\subsubsection subsubsecVOLNewConnpeek_value H5VLpeek_connector_id_by_value
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
hid_t H5VLpeek_connector_id_by_value(H5VL_class_value_t value);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
value (IN): value of the connector to query.
\endcode
</td>
</tr>
</table>
Retrieves the ID for a registered VOL connector based on a connector value. This is done without duplicating
the ID and transferring ownership to the caller (as it normally the case in the HDF5 library). The ID returned
from this operation should not be closed. This is intended for use by VOL connectors to find their own ID.
Returns a negative value (#H5I_INVALID_HID) on errors.
\subsection subsecVOLNewPass H5VLconnector_passthru.h
This functionality is intended for VOL connector authors who are writing pass-through connectors and
includes helper functions that are useful for writing such connectors. Callback equivalent functions can be
found in this header as well. A list of these functions is included as an appendix to this document.
\subsubsection subsubsecVOLNewPasscmp H5VLcmp_connector_cls
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t H5VLcmp_connector_cls(int *cmp, hid_t connector_id1, hid_t connector_id2);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
cmp (OUT): a value like strcmp.
connector_id1 (IN): the ID of the first connector to compare.
connector_id2 (IN): the ID of the second connector to compare
\endcode
</td>
</tr>
</table>
Compares two connectors (given by the connector IDs) to see if they refer to the same connector underneath.
Returns a positive value on success and a negative value on errors.
\subsubsection subsubsecVOLNewPasswrap H5VLwrap_register
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
hid_t H5VLwrap_register(void *obj, H5I_type_t type);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
obj (IN): an object to wrap.
type (IN): the type of the object (see below).
\endcode
</td>
</tr>
</table>
Wrap an internal object with a "wrap context" and register and return an hidt for the resulting object.
This routine is mainly targeted toward wrapping objects for iteration routine callbacks
(i.e. the callbacks from H5Aiterate*, H5Literate* / H5Lvisit*, and H5Ovisit* ). Using it in an application
will return an error indicating the API context isn't available or can't be retrieved.
he type must be a VOL-managed object class:
\li #H5I_FILE
\li #H5I_GROUP
\li #H5I_DATATYPE
\li #H5I_DATASET
\li #H5I_MAP
\li #H5I_ATTR
\subsubsection subsubsecVOLNewPassretrieve H5VLretrieve_lib_state
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t H5VLretrieve_lib_state(void **state);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
state (OUT): the library state.
\endcode
</td>
</tr>
</table>
Retrieves a copy of the internal state of the HDF5 library, so that it can be restored later. Returns a positive
value on success and a negative value on errors.
\subsubsection subsubsecVOLNewPassstar H5VLstart_lib_state
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t H5VLstart_lib_state(void);
\endcode
</td>
</tr>
</table>
Opens a new internal state for the HDF5 library. Returns a positive value on success and a negative value
on errors.
\subsubsection subsubsecVOLNewPassrestore H5VLrestore_lib_state
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t H5VLrestore_lib_state(const void *state);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
state (IN): the library state.
\endcode
</td>
</tr>
</table>
Restores the internal state of the HDF5 library. Returns a positive value on success and a negative value on errors.
\subsubsection subsubsecVOLNewPassfinish H5VLfinish_lib_state
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t H5VLfinish_lib_state(void);
\endcode
</td>
</tr>
</table>
Closes the state of the library, undoing the effects of #H5VLstart_lib_state. Returns a positive value on
success and a negative value on errors.
\subsubsection subsubsecVOLNewPassfree H5VLfree_lib_state
<table>
<tr>
<th>Signature:</th>
</tr>
<tr>
<td>
\code
herr_t H5VLfree_lib_state(void *state);
\endcode
</td>
</tr>
<tr>
<th>Arguments:</th>
</tr>
<tr>
<td>
\code
state (IN): the library state.
\endcode
</td>
</tr>
</table>
Free a retrieved library state. Returns a positive value on success and a negative value on errors.
\section secVOLAppA Appendix A Mapping of VOL Callbacks to HDF5 API Calls
<table>
<tr>
<td>VOL Callback</td>
<td>HDF5 API Call</td>
</tr>
<tr>
<th colspan="2">FILE</th>
</tr>
<tr>
<td>create</td>
<td>\li #H5Fcreate</td>
</tr>
<tr>
<td>open</td>
<td>
\li #H5Fopen
</td>
</tr>
<tr>
<td>get</td>
<td>
\li #H5Fget_access_plist
\li #H5Fget_create_plist
\li #H5Fget_fileno
\li #H5Fget_intent
\li #H5Fget_name
\li #H5Fget_obj_count
\li #H5Fget_obj_ids
</td>
</tr>
<tr>
<td>specific</td>
<td>
\li #H5Fdelete
\li #H5Fflush
\li #H5Fis_accessible
\li #H5Fis_hdf5 (deprecated, hard-coded to use native connector)
\li #H5Freopen
</td>
</tr>
<tr>
<td>close</td>
<td>
\li #H5Fclose
</td>
</tr>
<tr>
<th colspan="2">GROUP</th>
</tr>
<tr>
<td>create</td>
<td>
\li #H5Gcreate1 (deprecated)
\li #H5Gcreate2
\li #H5Gcreate_anon
</td>
</tr>
<tr>
<td>open</td>
<td>
\li #H5Gopen1 (deprecated)
\li #H5Gopen2
</td>
</tr>
<tr>
<td>get</td>
<td>
\li #H5Gget_create_plist
\li #H5Gget_info
\li #H5Gget_info_by_idx
\li #H5Gget_info_by_name
\li #H5Gget_num_objs (deprecated)
</td>
</tr>
<tr>
<td>specific</td>
<td>
\li #H5Fmount
\li #H5Funmount
\li #H5Gflush
\li #H5Grefresh
</td>
</tr>
<tr>
<td>close</td>
<td>
\li #H5Gclose
</td>
</tr>
<tr>
<th colspan="2">DATASET</th>
</tr>
<tr>
<td>create</td>
<td>
\li #H5Dcreate1 (deprecated)
\li #H5Dcreate2
</td>
</tr>
<tr>
<td>open</td>
<td>
\li #H5Dopen1 (deprecated)
\li #H5Dopen2
</td>
</tr>
<tr>
<td>read</td>
<td>
\li #H5Dread
</td>
</tr>
<tr>
<td>write</td>
<td>
\li #H5Dwrite
</td>
</tr>
<tr>
<td>get</td>
<td>
\li #H5Dget_access_plist
\li #H5Dget_create_plist
\li #H5Dget_space
\li #H5Dget_space_status
\li #H5Dget_storage_size
\li #H5Dget_type
</td>
</tr>
<tr>
<td>specific</td>
<td>
\li #H5Dextend (deprecated)
\li #H5Dflush
\li #H5Drefresh
\li #H5Dset_extent
</td>
</tr>
<tr>
<td>close</td>
<td>
\li #H5Dclose
</td>
</tr>
<tr>
<th colspan="2">OBJECT</th>
</tr>
<tr>
<td>open</td>
<td>
\li #H5Oopen
\li #H5Oopen_by_addr (deprecated)
\li #H5Oopen_by_idx
\li #H5Oopen_by_token
</td>
</tr>
<tr>
<td>copy</td>
<td>
\li #H5Ocopy
</td>
</tr>
<tr>
<td>get</td>
<td>
\li #H5Oget_info1 (deprecated)
\li #H5Oget_info2 (deprecated)
\li #H5Oget_info3
</td>
</tr>
<tr>
<td>specific</td>
<td>
\li #H5Odecr_refcount
\li #H5Oexists_by_name
\li #H5Oflush
\li #H5Oincr_refcount
\li #H5Orefresh
\li #H5Ovisit_by_name1 (deprecated)
\li #H5Ovisit_by_name2 (deprecated)
\li #H5Ovisit_by_name3
\li #H5Ovisit1 (deprecated)
\li #H5Ovisit2 (deprecated)
\li #H5Ovisit3
</td>
</tr>
<tr>
<td>close</td>
<td>
\li #H5Oclose
</td>
</tr>
<tr>
<th colspan="2">LINK</th>
</tr>
<tr>
<td>create</td>
<td>
\li #H5Glink (deprecated)
\li #H5Glink2 (deprecated)
\li #H5Lcreate_hard
\li #H5Lcreate_soft
\li #H5Lcreate_ud
\li #H5Olink
</td>
</tr>
<tr>
<td>copy</td>
<td>
\li #H5Lcopy
</td>
</tr>
<tr>
<td>move</td>
<td>
\li #H5Gmove (deprecated)
\li #H5Gmove2 (deprecated)
\li #H5Lmove
</td>
</tr>
<tr>
<td>get</td>
<td>
\li #H5Gget_linkval (deprecated)
\li #H5Lget_info1 (deprecated)
\li #H5Lget_info2
\li #H5Lget_info_by_idx
\li #H5Lget_name_by_idx
\li #H5Lget_val
\li #H5Lget_val_by_idx
</td>
</tr>
<tr>
<td>specific</td>
<td>
\li #H5Gunlink (deprecated)
\li #H5Ldelete
\li #H5Ldelete_by_idx
\li #H5Lexists
\li #H5Literate1 (deprecated)
\li #H5Literate2
\li #H5Literate_by_name1 (deprecated)
\li #H5Literate_by_name2
\li #H5Lvisit1 (deprecated)
\li #H5Lvisit2
\li #H5Lvisit_by_name1 (deprecated)
\li #H5Lvisit_by_name2
</td>
</tr>
<tr>
<th colspan="2">DATATYPE</th>
</tr>
<tr>
<td>commit</td>
<td>
\li #H5Tcommit1 (deprecated)
\li #H5Tcommit2
\li #H5Tcommit+anon
</td>
</tr>
<tr>
<td>open</td>
<td>
\li #H5Topen1 (deprecated)
\li #H5Topen2
</td>
</tr>
<tr>
<td>get</td>
<td>
\li #H5Tget_create_plist
</td>
</tr>
<tr>
<td>specific</td>
<td>
\li #H5Tflush
\li #H5Trefresh
</td>
</tr>
<tr>
<td>close</td>
<td>
\li #H5Tclose
</td>
</tr>
<tr>
<th colspan="2">ATTRIBUTE</th>
</tr>
<tr>
<td>create</td>
<td>
\li #H5Acreate1 (deprecated)
\li #H5Acreate2
\li #H5Acreate_by_name
</td>
</tr>
<tr>
<td>open</td>
<td>
\li #H5Aopen
\li #H5Aopen_by_idx
\li #H5Aopen_by_name
\li #H5Aopen_idx (deprecated)
\li #H5Aopen_name (deprecated)
</td>
</tr>
<tr>
<td>read</td>
<td>
\li #H5Aread
</td>
</tr>
<tr>
<td>write</td>
<td>
\li #H5Awrite
</td>
</tr>
<tr>
<td>get</td>
<td>
\li #H5Aget_create_plist
\li #H5Aget_info
\li #H5Aget_info_by_idx
\li #H5Aget_info_by_name
\li #H5Aget_name
\li #H5Aget_name_by_idx
\li #H5Aget_space
\li #H5Aget_storage_size
\li #H5Aget_type
</td>
</tr>
<tr>
<td>specific</td>
<td>
\li #H5Adelete
\li #H5Adelete_by_idx
\li #H5Adelete_by_name
\li #H5Aexists
\li #H5Aexists_by_name
\li #H5Aiterate1 (deprecated)
\li #H5Aiterate2
\li #H5Aiterate_by_name
\li #H5Arename
\li #H5Arename_by_name
</td>
</tr>
<tr>
<td>close</td>
<td>
\li #H5Aclose
</td>
</tr>
</table>
\section secVOLAppB Appendix B Callback Wrapper API Calls for Passthrough Connector Authors
\code
/* Pass-through callbacks */
H5_DLL void *H5VLget_object(void *obj, hid_t connector_id);
H5_DLL herr_t H5VLget_wrap_ctx(void *obj, hid_t connector_id, void **wrap_ctx);
H5_DLL void *H5VLwrap_object(void *obj, H5I_type_t obj_type, hid_t connector_id, void *wrap_ctx);
H5_DLL void *H5VLunwrap_object(void *obj, hid_t connector_id);
H5_DLL herr_t H5VLfree_wrap_ctx(void *wrap_ctx, hid_t connector_id);
/* Public wrappers for generic callbacks */
H5_DLL herr_t H5VLinitialize(hid_t connector_id, hid_t vipl_id);
H5_DLL herr_t H5VLterminate(hid_t connector_id);
H5_DLL herr_t H5VLget_cap_flags(hid_t connector_id, uint64_t *cap_flags);
H5_DLL herr_t H5VLget_value(hid_t connector_id, H5VL_class_value_t *conn_value);
/* Public wrappers for info fields and callbacks */
H5_DLL herr_t H5VLcopy_connector_info(hid_t connector_id, void **dst_vol_info, void *src_vol_info);
H5_DLL herr_t H5VLcmp_connector_info(int *cmp, hid_t connector_id, const void *info1, const void *info2);
H5_DLL herr_t H5VLfree_connector_info(hid_t connector_id, void *vol_info);
H5_DLL herr_t H5VLconnector_info_to_str(const void *info, hid_t connector_id, char **str);
H5_DLL herr_t H5VLconnector_str_to_info(const char *str, hid_t connector_id, void **info);
/* Public wrappers for attribute callbacks */
H5_DLL void *H5VLattr_create(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id,
const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id,
hid_t aapl_id, hid_t dxpl_id, void **req);
H5_DLL void *H5VLattr_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id,
const char *name, hid_t aapl_id, hid_t dxpl_id, void **req);
H5_DLL herr_t H5VLattr_read(void *attr, hid_t connector_id, hid_t dtype_id, void *buf, hid_t dxpl_id,
void **req);
H5_DLL herr_t H5VLattr_write(void *attr, hid_t connector_id, hid_t dtype_id, const void *buf, hid_t dxpl_id,
void **req);
H5_DLL herr_t H5VLattr_get(void *obj, hid_t connector_id, H5VL_attr_get_args_t *args, hid_t dxpl_id,
void **req);
H5_DLL herr_t H5VLattr_specific(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id,
H5VL_attr_specific_args_t *args, hid_t dxpl_id, void **req);
H5_DLL herr_t H5VLattr_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id,
void **req);
H5_DLL herr_t H5VLattr_close(void *attr, hid_t connector_id, hid_t dxpl_id, void **req);
/* Public wrappers for dataset callbacks */
H5_DLL void *H5VLdataset_create(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id,
const char *name, hid_t lcpl_id, hid_t type_id, hid_t space_id, hid_t dcpl_id,
hid_t dapl_id, hid_t dxpl_id, void **req);
H5_DLL void *H5VLdataset_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id,
const char *name, hid_t dapl_id, hid_t dxpl_id, void **req);
H5_DLL herr_t H5VLdataset_read(size_t count, void *dset[], hid_t connector_id, hid_t mem_type_id[],
hid_t mem_space_id[], hid_t file_space_id[], hid_t plist_id, void *buf[],
void **req);
H5_DLL herr_t H5VLdataset_write(size_t count, void *dset[], hid_t connector_id, hid_t mem_type_id[],
hid_t mem_space_id[], hid_t file_space_id[], hid_t plist_id,
const void *buf[], void **req);
H5_DLL herr_t H5VLdataset_get(void *dset, hid_t connector_id, H5VL_dataset_get_args_t *args, hid_t dxpl_id,
void **req);
H5_DLL herr_t H5VLdataset_specific(void *obj, hid_t connector_id, H5VL_dataset_specific_args_t *args,
hid_t dxpl_id, void **req);
H5_DLL herr_t H5VLdataset_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id,
void **req);
H5_DLL herr_t H5VLdataset_close(void *dset, hid_t connector_id, hid_t dxpl_id, void **req);
/* Public wrappers for named datatype callbacks */
H5_DLL void *H5VLdatatype_commit(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id,
const char *name, hid_t type_id, hid_t lcpl_id, hid_t tcpl_id, hid_t tapl_id,
hid_t dxpl_id, void **req);
H5_DLL void *H5VLdatatype_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id,
const char *name, hid_t tapl_id, hid_t dxpl_id, void **req);
H5_DLL herr_t H5VLdatatype_get(void *dt, hid_t connector_id, H5VL_datatype_get_args_t *args, hid_t dxpl_id,
void **req);
H5_DLL herr_t H5VLdatatype_specific(void *obj, hid_t connector_id, H5VL_datatype_specific_args_t *args,
hid_t dxpl_id, void **req);
H5_DLL herr_t H5VLdatatype_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id,
void **req);
H5_DLL herr_t H5VLdatatype_close(void *dt, hid_t connector_id, hid_t dxpl_id, void **req);
/* Public wrappers for file callbacks */
H5_DLL void *H5VLfile_create(const char *name, unsigned flags, hid_t fcpl_id, hid_t fapl_id, hid_t dxpl_id,
void **req);
H5_DLL void *H5VLfile_open(const char *name, unsigned flags, hid_t fapl_id, hid_t dxpl_id, void **req);
H5_DLL herr_t H5VLfile_get(void *file, hid_t connector_id, H5VL_file_get_args_t *args, hid_t dxpl_id,
void **req);
H5_DLL herr_t H5VLfile_specific(void *obj, hid_t connector_id, H5VL_file_specific_args_t *args, hid_t dxpl_id,
void **req);
H5_DLL herr_t H5VLfile_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id,
void **req);
H5_DLL herr_t H5VLfile_close(void *file, hid_t connector_id, hid_t dxpl_id, void **req);
/* Public wrappers for group callbacks */
H5_DLL void *H5VLgroup_create(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id,
const char *name, hid_t lcpl_id, hid_t gcpl_id, hid_t gapl_id, hid_t dxpl_id,
void **req);
H5_DLL void *H5VLgroup_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id,
const char *name, hid_t gapl_id, hid_t dxpl_id, void **req);
H5_DLL herr_t H5VLgroup_get(void *obj, hid_t connector_id, H5VL_group_get_args_t *args, hid_t dxpl_id,
void **req);
H5_DLL herr_t H5VLgroup_specific(void *obj, hid_t connector_id, H5VL_group_specific_args_t *args,
hid_t dxpl_id, void **req);
H5_DLL herr_t H5VLgroup_optional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id,
void **req);
H5_DLL herr_t H5VLgroup_close(void *grp, hid_t connector_id, hid_t dxpl_id, void **req);
/* Public wrappers for link callbacks */
H5_DLL herr_t H5VLlink_create(H5VL_link_create_args_t *args, void *obj, const H5VL_loc_params_t *loc_params,
hid_t connector_id, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void **req);
H5_DLL herr_t H5VLlink_copy(void *src_obj, const H5VL_loc_params_t *loc_params1, void *dst_obj,
const H5VL_loc_params_t *loc_params2, hid_t connector_id, hid_t lcpl_id,
hid_t lapl_id, hid_t dxpl_id, void **req);
H5_DLL herr_t H5VLlink_move(void *src_obj, const H5VL_loc_params_t *loc_params1, void *dst_obj,
const H5VL_loc_params_t *loc_params2, hid_t connector_id, hid_t lcpl_id,
hid_t lapl_id, hid_t dxpl_id, void **req);
H5_DLL herr_t H5VLlink_get(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id,
H5VL_link_get_args_t *args, hid_t dxpl_id, void **req);
H5_DLL herr_t H5VLlink_specific(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id,
H5VL_link_specific_args_t *args, hid_t dxpl_id, void **req);
H5_DLL herr_t H5VLlink_optional(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id,
H5VL_optional_args_t *args, hid_t dxpl_id, void **req);
/* Public wrappers for object callbacks */
H5_DLL void *H5VLobject_open(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id,
H5I_type_t *opened_type, hid_t dxpl_id, void **req);
H5_DLL herr_t H5VLobject_copy(void *src_obj, const H5VL_loc_params_t *loc_params1, const char *src_name,
void *dst_obj, const H5VL_loc_params_t *loc_params2, const char *dst_name,
hid_t connector_id, hid_t ocpypl_id, hid_t lcpl_id, hid_t dxpl_id, void **req);
H5_DLL herr_t H5VLobject_get(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id,
H5VL_object_get_args_t *args, hid_t dxpl_id, void **req);
H5_DLL herr_t H5VLobject_specific(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id,
H5VL_object_specific_args_t *args, hid_t dxpl_id, void **req);
H5_DLL herr_t H5VLobject_optional(void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id,
H5VL_optional_args_t *args, hid_t dxpl_id, void **req);
/* Public wrappers for connector/container introspection callbacks */
H5_DLL herr_t H5VLintrospect_get_conn_cls(void *obj, hid_t connector_id, H5VL_get_conn_lvl_t lvl,
const H5VL_class_t **conn_cls);
H5_DLL herr_t H5VLintrospect_get_cap_flags(const void *info, hid_t connector_id, uint64_t *cap_flags);
H5_DLL herr_t H5VLintrospect_opt_query(void *obj, hid_t connector_id, H5VL_subclass_t subcls, int opt_type,
uint64_t *flags);
/* Public wrappers for asynchronous request callbacks */
H5_DLL herr_t H5VLrequest_wait(void *req, hid_t connector_id, uint64_t timeout,
H5VL_request_status_t *status);
H5_DLL herr_t H5VLrequest_notify(void *req, hid_t connector_id, H5VL_request_notify_t cb, void *ctx);
H5_DLL herr_t H5VLrequest_cancel(void *req, hid_t connector_id, H5VL_request_status_t *status);
H5_DLL herr_t H5VLrequest_specific(void *req, hid_t connector_id, H5VL_request_specific_args_t *args);
H5_DLL herr_t H5VLrequest_optional(void *req, hid_t connector_id, H5VL_optional_args_t *args);
H5_DLL herr_t H5VLrequest_free(void *req, hid_t connector_id);
/* Public wrappers for blob callbacks */
H5_DLL herr_t H5VLblob_put(void *obj, hid_t connector_id, const void *buf, size_t size, void *blob_id,
void *ctx);
H5_DLL herr_t H5VLblob_get(void *obj, hid_t connector_id, const void *blob_id, void *buf, size_t size,
void *ctx);
H5_DLL herr_t H5VLblob_specific(void *obj, hid_t connector_id, void *blob_id,
H5VL_blob_specific_args_t *args);
H5_DLL herr_t H5VLblob_optional(void *obj, hid_t connector_id, void *blob_id, H5VL_optional_args_t *args);
/* Public wrappers for token callbacks */
H5_DLL herr_t H5VLtoken_cmp(void *obj, hid_t connector_id, const H5O_token_t *token1,
const H5O_token_t *token2, int *cmp_value);
H5_DLL herr_t H5VLtoken_to_str(void *obj, H5I_type_t obj_type, hid_t connector_id, const H5O_token_t *token,
char **token_str);
H5_DLL herr_t H5VLtoken_from_str(void *obj, H5I_type_t obj_type, hid_t connector_id, const char *token_str,
H5O_token_t *token);
/* Public wrappers for generic 'optional' callback */
H5_DLL herr_t H5VLoptional(void *obj, hid_t connector_id, H5VL_optional_args_t *args, hid_t dxpl_id,
void **req);
\endcode
\section secVOLAppC Appendix C Native VOL Connector Optional Values By Subclass
\code
/* H5VL_SUBCLS_ATTR */
#define H5VL_NATIVE_ATTR_ITERATE_OLD 0 /* H5Aiterate (deprecated routine) */
/* H5VL_SUBCLS_DATASET */
#define H5VL_NATIVE_DATASET_FORMAT_CONVERT 0 /* H5Dformat_convert (internal) */
#define H5VL_NATIVE_DATASET_GET_CHUNK_INDEX_TYPE 1 /* H5Dget_chunk_index_type */
#define H5VL_NATIVE_DATASET_GET_CHUNK_STORAGE_SIZE 2 /* H5Dget_chunk_storage_size */
#define H5VL_NATIVE_DATASET_GET_NUM_CHUNKS 3 /* H5Dget_num_chunks */
#define H5VL_NATIVE_DATASET_GET_CHUNK_INFO_BY_IDX 4 /* H5Dget_chunk_info */
#define H5VL_NATIVE_DATASET_GET_CHUNK_INFO_BY_COORD 5 /* H5Dget_chunk_info_by_coord */
#define H5VL_NATIVE_DATASET_CHUNK_READ 6 /* H5Dchunk_read */
#define H5VL_NATIVE_DATASET_CHUNK_WRITE 7 /* H5Dchunk_write */
#define H5VL_NATIVE_DATASET_GET_VLEN_BUF_SIZE 8 /* H5Dvlen_get_buf_size */
#define H5VL_NATIVE_DATASET_GET_OFFSET 9 /* H5Dget_offset */
#define H5VL_NATIVE_DATASET_CHUNK_ITER 10 /* H5Dchunk_iter */
/* H5VL_SUBCLS_FILE */
#define H5VL_NATIVE_FILE_CLEAR_ELINK_CACHE 0 /* H5Fclear_elink_file_cache */
#define H5VL_NATIVE_FILE_GET_FILE_IMAGE 1 /* H5Fget_file_image */
#define H5VL_NATIVE_FILE_GET_FREE_SECTIONS 2 /* H5Fget_free_sections */
#define H5VL_NATIVE_FILE_GET_FREE_SPACE 3 /* H5Fget_freespace */
#define H5VL_NATIVE_FILE_GET_INFO 4 /* H5Fget_info1/2 */
#define H5VL_NATIVE_FILE_GET_MDC_CONF 5 /* H5Fget_mdc_config */
#define H5VL_NATIVE_FILE_GET_MDC_HR 6 /* H5Fget_mdc_hit_rate */
#define H5VL_NATIVE_FILE_GET_MDC_SIZE 7 /* H5Fget_mdc_size */
#define H5VL_NATIVE_FILE_GET_SIZE 8 /* H5Fget_filesize */
#define H5VL_NATIVE_FILE_GET_VFD_HANDLE 9 /* H5Fget_vfd_handle */
#define H5VL_NATIVE_FILE_RESET_MDC_HIT_RATE 10 /* H5Freset_mdc_hit_rate_stats */
#define H5VL_NATIVE_FILE_SET_MDC_CONFIG 11 /* H5Fset_mdc_config */
#define H5VL_NATIVE_FILE_GET_METADATA_READ_RETRY_INFO 12 /* H5Fget_metadata_read_retry_info */
#define H5VL_NATIVE_FILE_START_SWMR_WRITE 13 /* H5Fstart_swmr_write */
#define H5VL_NATIVE_FILE_START_MDC_LOGGING 14 /* H5Fstart_mdc_logging */
#define H5VL_NATIVE_FILE_STOP_MDC_LOGGING 15 /* H5Fstop_mdc_logging */
#define H5VL_NATIVE_FILE_GET_MDC_LOGGING_STATUS 16 /* H5Fget_mdc_logging_status */
#define H5VL_NATIVE_FILE_FORMAT_CONVERT 17 /* H5Fformat_convert */
#define H5VL_NATIVE_FILE_RESET_PAGE_BUFFERING_STATS 18 /* H5Freset_page_buffering_stats */
#define H5VL_NATIVE_FILE_GET_PAGE_BUFFERING_STATS 19 /* H5Fget_page_buffering_stats */
#define H5VL_NATIVE_FILE_GET_MDC_IMAGE_INFO 20 /* H5Fget_mdc_image_info */
#define H5VL_NATIVE_FILE_GET_EOA 21 /* H5Fget_eoa */
#define H5VL_NATIVE_FILE_INCR_FILESIZE 22 /* H5Fincrement_filesize */
#define H5VL_NATIVE_FILE_SET_LIBVER_BOUNDS 23 /* H5Fset_latest_format/libver_bounds */
#define H5VL_NATIVE_FILE_GET_MIN_DSET_OHDR_FLAG 24 /* H5Fget_dset_no_attrs_hint */
#define H5VL_NATIVE_FILE_SET_MIN_DSET_OHDR_FLAG 25 /* H5Fset_dset_no_attrs_hint */
#ifdef H5_HAVE_PARALLEL
#define H5VL_NATIVE_FILE_GET_MPI_ATOMICITY 26 /* H5Fget_mpi_atomicity */
#define H5VL_NATIVE_FILE_SET_MPI_ATOMICITY 27 /* H5Fset_mpi_atomicity */
#endif
#define H5VL_NATIVE_FILE_POST_OPEN 28 /* Adjust file after open, with wrapping context */
/* H5VL_SUBCLS_GROUP */
#define H5VL_NATIVE_GROUP_ITERATE_OLD 0 /* HG5Giterate (deprecated routine) */
#define H5VL_NATIVE_GROUP_GET_OBJINFO 1 /* HG5Gget_objinfo (deprecated routine) */
/* H5VL_SUBCLS_OBJECT */
#define H5VL_NATIVE_OBJECT_GET_COMMENT 0 /* H5G|H5Oget_comment, H5Oget_comment_by_name */
#define H5VL_NATIVE_OBJECT_SET_COMMENT 1 /* H5G|H5Oset_comment, H5Oset_comment_by_name */
#define H5VL_NATIVE_OBJECT_DISABLE_MDC_FLUSHES 2 /* H5Odisable_mdc_flushes */
#define H5VL_NATIVE_OBJECT_ENABLE_MDC_FLUSHES 3 /* H5Oenable_mdc_flushes */
#define H5VL_NATIVE_OBJECT_ARE_MDC_FLUSHES_DISABLED 4 /* H5Oare_mdc_flushes_disabled */
#define H5VL_NATIVE_OBJECT_GET_NATIVE_INFO 5 /* H5Oget_native_info(_by_idx, _by_name) */
\endcode
<hr>
Navigate back: \ref index "Main" / \ref VOL_Connector
*/
|