diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2006-10-18 20:20:32 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2006-10-18 20:20:32 (GMT) |
commit | 4d32eb160bd41628638d9aa2e7239f85b6b28250 (patch) | |
tree | eb36947c0b9733a282e1636d16f61e09f7086ff7 /src/H5FDdirect.h | |
parent | d4daafbc853cbc85c6594d540e6d3a192e95f78f (diff) | |
download | hdf5-4d32eb160bd41628638d9aa2e7239f85b6b28250.zip hdf5-4d32eb160bd41628638d9aa2e7239f85b6b28250.tar.gz hdf5-4d32eb160bd41628638d9aa2e7239f85b6b28250.tar.bz2 |
[svn-r12776] The internal change is to make the 3 parameters of H5Pset_fapl_direct be a structure and passed
through driver info functions in H5FD_direct_open, H5FD_direct_read, and H5FD_direct_write. The
external change is to add a new API function H5Pget_fapl_direct to query 3 control values, the
memory boundary, file system block size, and the maximal buffer size for copying data.
Diffstat (limited to 'src/H5FDdirect.h')
-rw-r--r-- | src/H5FDdirect.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/H5FDdirect.h b/src/H5FDdirect.h index 4e4d821..754cd3b 100644 --- a/src/H5FDdirect.h +++ b/src/H5FDdirect.h @@ -34,10 +34,18 @@ extern "C" { #endif +/* Default values for memory boundary, file block size, and maximal copy buffer size. + * Application can set these values through the function H5Pset_fapl_direct. */ +#define MBOUNDARY_DEF 4096 +#define FBSIZE_DEF 4096 +#define CBSIZE_DEF 128*1024*1024 + H5_DLL hid_t H5FD_direct_init(void); H5_DLL void H5FD_direct_term(void); H5_DLL herr_t H5Pset_fapl_direct(hid_t fapl_id, hsize_t alignment, hsize_t block_size, hsize_t cbuf_size); +H5_DLL herr_t H5Pget_fapl_direct(hid_t fapl_id, hsize_t *boundary/*out*/, + hsize_t *block_size/*out*/, hsize_t *cbuf_size/*out*/); #ifdef __cplusplus } |