orcm/mca/scd/base/scd_base_frame.c
/**
 * Function for finding and opening either all MCA components, or the one
 * that was specifically requested via a MCA parameter.
 */
Function for finding and opening either all MCA components, or the one
that was specifically requested via a MCA parameter.
Function for finding and opening either all MCA components or the one that was specifically requested via a MCA parameter .
static int orcm_scd_base_open(mca_base_open_flag_t flags)
{
    int rc;
    OBJ_CONSTRUCT(&orcm_scd_base.states, opal_list_t);
    OBJ_CONSTRUCT(&orcm_scd_base.rmstates, opal_list_t);
    OBJ_CONSTRUCT(&orcm_scd_base.queues, opal_list_t);
    OBJ_CONSTRUCT(&orcm_scd_base.nodes, opal_pointer_array_t);
    opal_pointer_array_init(&orcm_scd_base.nodes, 8, INT_MAX, 8);
    OBJ_CONSTRUCT(&orcm_scd_base.topologies, opal_pointer_array_t);
    opal_pointer_array_init(&orcm_scd_base.topologies, 1, INT_MAX, 1);
    OBJ_CONSTRUCT(&orcm_scd_base.tracking, opal_list_t);
    if (OPAL_SUCCESS !=
        (rc = mca_base_framework_components_open(&orcm_scd_base_framework,
                                                 flags))) {
        return rc;
    }
    if (NULL ==
        (orcm_scd_base.ev_base = opal_start_progress_thread("scd", true))) {
        return ORCM_ERR_OUT_OF_RESOURCE;
    }
    return rc;
}
static int orcm_scd_base_open ( mca_base_open_flag_t flags ) { int rc ; OBJ_CONSTRUCT ( & orcm_scd_base . states , opal_list_t ) ; OBJ_CONSTRUCT ( & orcm_scd_base . rmstates , opal_list_t ) ; OBJ_CONSTRUCT ( & orcm_scd_base . queues , opal_list_t ) ; OBJ_CONSTRUCT ( & orcm_scd_base . nodes , opal_pointer_array_t ) ; opal_pointer_array_init ( & orcm_scd_base . nodes , 8 , INT_MAX , 8 ) ; OBJ_CONSTRUCT ( & orcm_scd_base . topologies , opal_pointer_array_t ) ; opal_pointer_array_init ( & orcm_scd_base . topologies , 1 , INT_MAX , 1 ) ; OBJ_CONSTRUCT ( & orcm_scd_base . tracking , opal_list_t ) ; if ( OPAL_SUCCESS != ( rc = mca_base_framework_components_open ( & orcm_scd_base_framework , flags ) ) ) { return rc ; } if ( NULL == ( orcm_scd_base . ev_base = opal_start_progress_thread ( " " , true ) ) ) { return ORCM_ERR_OUT_OF_RESOURCE ; } return rc ; }
Function for finding and opening either all MCA components, or the one
 that was specifically requested via a MCA parameter.
Function for finding and opening either all MCA components or the one that was specifically requested via a MCA parameter .
/* setup the base objects */ /* create the event base */