opal/mca/dstore/zht/dstore_zht_component.c
/* this component ignores any input attributes */
this component ignores any input attributes
this component ignores any input attributes
static opal_dstore_base_module_t *component_create(opal_list_t *attrs)
{
	opal_dstore_base_module_t *mod;
    mod = (opal_dstore_base_module_t*)malloc(sizeof(opal_dstore_base_module_t));
    if (NULL == mod) {
        OPAL_ERROR_LOG(OPAL_ERR_OUT_OF_RESOURCE);
        return NULL;
    }
    memcpy(mod, &opal_dstore_zht_module, sizeof(opal_dstore_base_module_t));
    if (OPAL_SUCCESS != mod->init((struct opal_dstore_base_module_t*)mod)) {
        free(mod);
        return NULL;
    }
    return (opal_dstore_base_module_t*)mod;
}
static opal_dstore_base_module_t * component_create ( opal_list_t * attrs ) { opal_dstore_base_module_t * mod ; mod = ( opal_dstore_base_module_t * ) malloc ( sizeof ( opal_dstore_base_module_t ) ) ; if ( NULL == mod ) { OPAL_ERROR_LOG ( OPAL_ERR_OUT_OF_RESOURCE ) ; return NULL ; } memcpy ( mod , & opal_dstore_zht_module , sizeof ( opal_dstore_base_module_t ) ) ; if ( OPAL_SUCCESS != mod -> init ( ( struct opal_dstore_base_module_t * ) mod ) ) { free ( mod ) ; return NULL ; } return ( opal_dstore_base_module_t * ) mod ; }
this component ignores any input attributes
this component ignores any input attributes
/* copy the APIs across */ /* let the module init itself
     * ZHT needs two parameters for initialization*/ /* release the module and return the error */