HDF5  1.12.0
Data Structures | Macros | Typedefs | Functions | Variables
H5CX.c File Reference
#include "H5CXmodule.h"
#include "H5private.h"
#include "H5CXprivate.h"
#include "H5Dprivate.h"
#include "H5Eprivate.h"
#include "H5FLprivate.h"
#include "H5Iprivate.h"
#include "H5Lprivate.h"
#include "H5MMprivate.h"
#include "H5Pprivate.h"

Data Structures

struct  H5CX_t
 
struct  H5CX_node_t
 
struct  H5CX_dxpl_cache_t
 
struct  H5CX_lcpl_cache_t
 
struct  H5CX_lapl_cache_t
 
struct  H5CX_dcpl_cache_t
 
struct  H5CX_dapl_cache_t
 
struct  H5CX_fapl_cache_t
 

Macros

#define H5CX_get_my_context()   (&H5CX_head_g)
 
#define H5CX_RETRIEVE_PLIST(PL, FAILVAL)
 
#define H5CX_RETRIEVE_PROP_COMMON(PL, DEF_PL, PROP_NAME, PROP_FIELD)
 
#define H5CX_RETRIEVE_PROP_VALID(PL, DEF_PL, PROP_NAME, PROP_FIELD)
 

Typedefs

typedef struct H5CX_t H5CX_t
 
typedef struct H5CX_node_t H5CX_node_t
 
typedef struct H5CX_dxpl_cache_t H5CX_dxpl_cache_t
 
typedef struct H5CX_lcpl_cache_t H5CX_lcpl_cache_t
 
typedef struct H5CX_lapl_cache_t H5CX_lapl_cache_t
 
typedef struct H5CX_dcpl_cache_t H5CX_dcpl_cache_t
 
typedef struct H5CX_dapl_cache_t H5CX_dapl_cache_t
 
typedef struct H5CX_fapl_cache_t H5CX_fapl_cache_t
 

Functions

 H5FL_DEFINE_STATIC (H5CX_node_t)
 
 H5FL_DEFINE_STATIC (H5CX_state_t)
 
herr_t H5CX__init_package (void)
 
int H5CX_term_package (void)
 
herr_t H5CX_push (void)
 
void H5CX_push_special (void)
 
herr_t H5CX_retrieve_state (H5CX_state_t **api_state)
 
herr_t H5CX_restore_state (const H5CX_state_t *api_state)
 
herr_t H5CX_free_state (H5CX_state_t *api_state)
 
hbool_t H5CX_is_def_dxpl (void)
 
void H5CX_set_dxpl (hid_t dxpl_id)
 
void H5CX_set_dcpl (hid_t dcpl_id)
 
herr_t H5CX_set_libver_bounds (H5F_t *f)
 
void H5CX_set_lcpl (hid_t lcpl_id)
 
void H5CX_set_lapl (hid_t lapl_id)
 
herr_t H5CX_set_apl (hid_t *acspl_id, const H5P_libclass_t *libclass, hid_t H5_ATTR_UNUSED loc_id, hbool_t H5_ATTR_UNUSED is_collective)
 
herr_t H5CX_set_loc (hid_t H5_ATTR_UNUSED loc_id)
 
herr_t H5CX_set_vol_wrap_ctx (void *vol_wrap_ctx)
 
herr_t H5CX_set_vol_connector_prop (const H5VL_connector_prop_t *vol_connector_prop)
 
hid_t H5CX_get_dxpl (void)
 
hid_t H5CX_get_lapl (void)
 
herr_t H5CX_get_vol_wrap_ctx (void **vol_wrap_ctx)
 
herr_t H5CX_get_vol_connector_prop (H5VL_connector_prop_t *vol_connector_prop)
 
haddr_t H5CX_get_tag (void)
 
H5AC_ring_t H5CX_get_ring (void)
 
herr_t H5CX_get_btree_split_ratios (double split_ratio[3])
 
herr_t H5CX_get_max_temp_buf (size_t *max_temp_buf)
 
herr_t H5CX_get_tconv_buf (void **tconv_buf)
 
herr_t H5CX_get_bkgr_buf (void **bkgr_buf)
 
herr_t H5CX_get_bkgr_buf_type (H5T_bkg_t *bkgr_buf_type)
 
herr_t H5CX_get_vec_size (size_t *vec_size)
 
herr_t H5CX_get_err_detect (H5Z_EDC_t *err_detect)
 
herr_t H5CX_get_filter_cb (H5Z_cb_t *filter_cb)
 
herr_t H5CX_get_data_transform (H5Z_data_xform_t **data_transform)
 
herr_t H5CX_get_vlen_alloc_info (H5T_vlen_alloc_info_t *vl_alloc_info)
 
herr_t H5CX_get_dt_conv_cb (H5T_conv_cb_t *dt_conv_cb)
 
herr_t H5CX_get_encoding (H5T_cset_t *encoding)
 
herr_t H5CX_get_intermediate_group (unsigned *crt_intermed_group)
 
herr_t H5CX_get_nlinks (size_t *nlinks)
 
herr_t H5CX_get_libver_bounds (H5F_libver_t *low_bound, H5F_libver_t *high_bound)
 
herr_t H5CX_get_dset_min_ohdr_flag (hbool_t *dset_min_ohdr_flag)
 
herr_t H5CX_get_ext_file_prefix (const char **extfile_prefix)
 
herr_t H5CX_get_vds_prefix (const char **vds_prefix)
 
void H5CX_set_tag (haddr_t tag)
 
void H5CX_set_ring (H5AC_ring_t ring)
 
herr_t H5CX_set_vlen_alloc_info (H5MM_allocate_t alloc_func, void *alloc_info, H5MM_free_t free_func, void *free_info)
 
herr_t H5CX_set_nlinks (size_t nlinks)
 
herr_t H5CX_get_ohdr_flags (uint8_t *ohdr_flags)
 
herr_t H5CX_pop (void)
 

Variables

hbool_t H5_PKG_INIT_VAR = FALSE
 

Macro Definition Documentation

◆ H5CX_get_my_context

#define H5CX_get_my_context ( )    (&H5CX_head_g)

◆ H5CX_RETRIEVE_PLIST

#define H5CX_RETRIEVE_PLIST (   PL,
  FAILVAL 
)
Value:
/* Check if the property list is already available */ \
if(NULL == (*head)->ctx.PL) \
/* Get the property list pointer */ \
if(NULL == ((*head)->ctx.PL = (H5P_genplist_t *)H5I_object((*head)->ctx.H5_GLUE(PL,_id)))) \
HGOTO_ERROR(H5E_CONTEXT, H5E_BADTYPE, (FAILVAL), "can't get property list")

◆ H5CX_RETRIEVE_PROP_COMMON

#define H5CX_RETRIEVE_PROP_COMMON (   PL,
  DEF_PL,
  PROP_NAME,
  PROP_FIELD 
)
Value:
/* Check for default property list */ \
if((*head)->ctx.H5_GLUE(PL,_id) == (DEF_PL)) \
H5MM_memcpy(&(*head)->ctx.PROP_FIELD, &H5_GLUE3(H5CX_def_,PL,_cache).PROP_FIELD, sizeof(H5_GLUE3(H5CX_def_,PL,_cache).PROP_FIELD)); \
else { \
/* Retrieve the property list */ \
H5CX_RETRIEVE_PLIST(PL, FAIL) \
\
/* Get the property */ \
if(H5P_get((*head)->ctx.PL, (PROP_NAME), &(*head)->ctx.PROP_FIELD) < 0) \
HGOTO_ERROR(H5E_CONTEXT, H5E_CANTGET, FAIL, "can't retrieve value from API context") \
} /* end else */ \
\
/* Mark the field as valid */ \
(*head)->ctx.H5_GLUE(PROP_FIELD,_valid) = TRUE;

◆ H5CX_RETRIEVE_PROP_VALID

#define H5CX_RETRIEVE_PROP_VALID (   PL,
  DEF_PL,
  PROP_NAME,
  PROP_FIELD 
)
Value:
/* Check if the value has been retrieved already */ \
if(!(*head)->ctx.H5_GLUE(PROP_FIELD,_valid)) { \
H5CX_RETRIEVE_PROP_COMMON(PL, DEF_PL, PROP_NAME, PROP_FIELD) \
} /* end if */

Typedef Documentation

◆ H5CX_dapl_cache_t

◆ H5CX_dcpl_cache_t

◆ H5CX_dxpl_cache_t

◆ H5CX_fapl_cache_t

◆ H5CX_lapl_cache_t

◆ H5CX_lcpl_cache_t

◆ H5CX_node_t

typedef struct H5CX_node_t H5CX_node_t

◆ H5CX_t

typedef struct H5CX_t H5CX_t

Function Documentation

◆ H5CX__init_package()

herr_t H5CX__init_package ( void  )

◆ H5CX_free_state()

herr_t H5CX_free_state ( H5CX_state_t api_state)

◆ H5CX_get_bkgr_buf()

herr_t H5CX_get_bkgr_buf ( void **  bkgr_buf)

◆ H5CX_get_bkgr_buf_type()

herr_t H5CX_get_bkgr_buf_type ( H5T_bkg_t bkgr_buf_type)

◆ H5CX_get_btree_split_ratios()

herr_t H5CX_get_btree_split_ratios ( double  split_ratio[3])

◆ H5CX_get_data_transform()

herr_t H5CX_get_data_transform ( H5Z_data_xform_t **  data_transform)

◆ H5CX_get_dset_min_ohdr_flag()

herr_t H5CX_get_dset_min_ohdr_flag ( hbool_t dset_min_ohdr_flag)

◆ H5CX_get_dt_conv_cb()

herr_t H5CX_get_dt_conv_cb ( H5T_conv_cb_t dt_conv_cb)

◆ H5CX_get_dxpl()

hid_t H5CX_get_dxpl ( void  )

◆ H5CX_get_encoding()

herr_t H5CX_get_encoding ( H5T_cset_t encoding)

◆ H5CX_get_err_detect()

herr_t H5CX_get_err_detect ( H5Z_EDC_t err_detect)

◆ H5CX_get_ext_file_prefix()

herr_t H5CX_get_ext_file_prefix ( const char **  extfile_prefix)

◆ H5CX_get_filter_cb()

herr_t H5CX_get_filter_cb ( H5Z_cb_t filter_cb)

◆ H5CX_get_intermediate_group()

herr_t H5CX_get_intermediate_group ( unsigned crt_intermed_group)

◆ H5CX_get_lapl()

hid_t H5CX_get_lapl ( void  )

◆ H5CX_get_libver_bounds()

herr_t H5CX_get_libver_bounds ( H5F_libver_t low_bound,
H5F_libver_t high_bound 
)

◆ H5CX_get_max_temp_buf()

herr_t H5CX_get_max_temp_buf ( size_t max_temp_buf)

◆ H5CX_get_nlinks()

herr_t H5CX_get_nlinks ( size_t nlinks)

◆ H5CX_get_ohdr_flags()

herr_t H5CX_get_ohdr_flags ( uint8_t ohdr_flags)

◆ H5CX_get_ring()

H5AC_ring_t H5CX_get_ring ( void  )

◆ H5CX_get_tag()

haddr_t H5CX_get_tag ( void  )

◆ H5CX_get_tconv_buf()

herr_t H5CX_get_tconv_buf ( void **  tconv_buf)

◆ H5CX_get_vds_prefix()

herr_t H5CX_get_vds_prefix ( const char **  vds_prefix)

◆ H5CX_get_vec_size()

herr_t H5CX_get_vec_size ( size_t vec_size)

◆ H5CX_get_vlen_alloc_info()

herr_t H5CX_get_vlen_alloc_info ( H5T_vlen_alloc_info_t vl_alloc_info)

◆ H5CX_get_vol_connector_prop()

herr_t H5CX_get_vol_connector_prop ( H5VL_connector_prop_t vol_connector_prop)

◆ H5CX_get_vol_wrap_ctx()

herr_t H5CX_get_vol_wrap_ctx ( void **  vol_wrap_ctx)

◆ H5CX_is_def_dxpl()

hbool_t H5CX_is_def_dxpl ( void  )

◆ H5CX_pop()

herr_t H5CX_pop ( void  )

◆ H5CX_push()

herr_t H5CX_push ( void  )

◆ H5CX_push_special()

void H5CX_push_special ( void  )

◆ H5CX_restore_state()

herr_t H5CX_restore_state ( const H5CX_state_t api_state)

◆ H5CX_retrieve_state()

herr_t H5CX_retrieve_state ( H5CX_state_t **  api_state)

◆ H5CX_set_apl()

herr_t H5CX_set_apl ( hid_t acspl_id,
const H5P_libclass_t libclass,
hid_t H5_ATTR_UNUSED  loc_id,
hbool_t H5_ATTR_UNUSED  is_collective 
)

◆ H5CX_set_dcpl()

void H5CX_set_dcpl ( hid_t  dcpl_id)

◆ H5CX_set_dxpl()

void H5CX_set_dxpl ( hid_t  dxpl_id)

◆ H5CX_set_lapl()

void H5CX_set_lapl ( hid_t  lapl_id)

◆ H5CX_set_lcpl()

void H5CX_set_lcpl ( hid_t  lcpl_id)

◆ H5CX_set_libver_bounds()

herr_t H5CX_set_libver_bounds ( H5F_t f)

◆ H5CX_set_loc()

herr_t H5CX_set_loc ( hid_t H5_ATTR_UNUSED  loc_id)

◆ H5CX_set_nlinks()

herr_t H5CX_set_nlinks ( size_t  nlinks)

◆ H5CX_set_ring()

void H5CX_set_ring ( H5AC_ring_t  ring)

◆ H5CX_set_tag()

void H5CX_set_tag ( haddr_t  tag)

◆ H5CX_set_vlen_alloc_info()

herr_t H5CX_set_vlen_alloc_info ( H5MM_allocate_t  alloc_func,
void *  alloc_info,
H5MM_free_t  free_func,
void *  free_info 
)

◆ H5CX_set_vol_connector_prop()

herr_t H5CX_set_vol_connector_prop ( const H5VL_connector_prop_t vol_connector_prop)

◆ H5CX_set_vol_wrap_ctx()

herr_t H5CX_set_vol_wrap_ctx ( void *  vol_wrap_ctx)

◆ H5CX_term_package()

int H5CX_term_package ( void  )

◆ H5FL_DEFINE_STATIC() [1/2]

H5FL_DEFINE_STATIC ( H5CX_node_t  )

◆ H5FL_DEFINE_STATIC() [2/2]

H5FL_DEFINE_STATIC ( H5CX_state_t  )

Variable Documentation

◆ H5_PKG_INIT_VAR

hbool_t H5_PKG_INIT_VAR = FALSE
H5E_CANTGET
Invalid arguments to routine Resource unavailable Internal File accessibility Low level I O Function entry exit Object atom Object cache Links B Tree node Symbol table Heap Object header Datatype Dataspace Dataset Data storage Property lists Attribute Data filters External file list References Virtual File Layer Virtual Object Layer Ternary Search Trees Reference Counted Strings Error API Skip Lists Free Space Manager Shared Object Header Messages Extensible Array Fixed Array Plugin for dynamically loaded library Page Buffering API Context Map No error Argument errors Resource errors File accessibility errors Generic low level file I O errors Function entry exit interface errors Object atom related errors Cache related errors Link related errors B tree related errors Object header related errors Group related errors Datatype conversion errors Dataspace errors Property list errors Parallel MPI errors Heap errors Free space errors I O pipeline errors System level errors Plugin errors No error Information is uinitialized Feature is unsupported Inappropriate type Out of range Bad value No space available for allocation Can t allocate space Unable to copy object Unable to free object Object already exists Unable to lock object Unable to unlock object Unable to garbage collect Unable to compute size Object is already open File already exists File already open Unable to create file Unable to open file Unable to close file Not an HDF5 file Bad file ID accessed File has been truncated File mount error Unable to delete file Seek failed Read failed Write failed Close failed Address overflowed File Unable to initialize object Object already initialized Unable to release object Unable to find atom Unable to find ID group information Unable to register new atom Unable to increment reference count Unable to decrement reference count Out of IDs for group Unable to flush data from cache Unable to mark metadata as unserialized Unable to serialize data from cache Unable to tag metadata in the cache Unable to load metadata into cache Protected metadata error Metadata not currently cached Internal error detected Unable to insert metadata into cache Unable to protect metadata Unable to unprotect metadata Unable to pin cache entry Unable to un pin cache entry Unable to mark a pinned entry as dirty Unable to mark a pinned entry as clean Unable to mark an entry as unserialized Unable to mark an entry as serialized Unable to mark metadata as dirty Unable to mark metadata as clean Unable to expunge a metadata cache entry Unable to resize a metadata cache entry Unable to create a flush dependency Unable to destroy a flush dependency Unable to notify object about action Failure in the cache logging framework Unable to cork an object Unable to uncork an object Object not found Object already exists Unable to encode value Unable to decode value Unable to split node Unable to redistribute records Unable to swap records Unable to insert object Unable to list node Unable to modify record Unable to remove object Bad object header link count Wrong version number Alignment error Unrecognized message Can t delete message Iteration failed Can t pack messages Can t reset object Unable to rename object Can t open object Can t close object Name component is too long Problem with path to object Can t convert datatypes Bad size for object Can t clip hyperslab region Can t count elements Can t select hyperslab Can t move to next iterator location Invalid selection Can t compare objects Internal states are inconsistent Can t append object H5E_CANTGET
Definition: H5err.txt:235
H5P_genplist_t
Definition: H5Ppkg.h:107
H5_GLUE3
#define H5_GLUE3(x, y, z)
Definition: H5private.h:1586
H5E_CONTEXT
Invalid arguments to routine Resource unavailable Internal File accessibility Low level I O Function entry exit Object atom Object cache Links B Tree node Symbol table Heap Object header Datatype Dataspace Dataset Data storage Property lists Attribute Data filters External file list References Virtual File Layer Virtual Object Layer Ternary Search Trees Reference Counted Strings Error API Skip Lists Free Space Manager Shared Object Header Messages Extensible Array Fixed Array Plugin for dynamically loaded library Page Buffering H5E_CONTEXT
Definition: H5err.txt:80
FAIL
#define FAIL
Definition: H5private.h:352
H5E_BADTYPE
Invalid arguments to routine Resource unavailable Internal File accessibility Low level I O Function entry exit Object atom Object cache Links B Tree node Symbol table Heap Object header Datatype Dataspace Dataset Data storage Property lists Attribute Data filters External file list References Virtual File Layer Virtual Object Layer Ternary Search Trees Reference Counted Strings Error API Skip Lists Free Space Manager Shared Object Header Messages Extensible Array Fixed Array Plugin for dynamically loaded library Page Buffering API Context Map No error Argument errors Resource errors File accessibility errors Generic low level file I O errors Function entry exit interface errors Object atom related errors Cache related errors Link related errors B tree related errors Object header related errors Group related errors Datatype conversion errors Dataspace errors Property list errors Parallel MPI errors Heap errors Free space errors I O pipeline errors System level errors Plugin errors No error Information is uinitialized Feature is unsupported H5E_BADTYPE
Definition: H5err.txt:112
H5P_get
herr_t H5P_get(H5P_genplist_t *plist, const char *name, void *value)
Definition: H5Pint.c:4568
TRUE
#define TRUE
Definition: H5FDmulti.c:36
H5I_object
void * H5I_object(hid_t id)
Definition: H5I.c:935