src/components/infiniband/linux-infiniband.c
/* Initialize hardware counters, setup the function vector table
 * and get hardware information, this routine is called when the 
 * PAPI process is initialized (IE PAPI_library_init)
 */
Initialize hardware counters, setup the function vector table
and get hardware information, this routine is called when the
PAPI process is initialized
Initialize hardware counters setup the function vector table and get hardware information this routine is called when the PAPI process is initialized
static int
_infiniband_init_component( int cidx )
{
    int result = find_ib_devices();
    if (result != PAPI_OK)  
    {
        deallocate_infiniband_resources();
    }
    _infiniband_vector.cmp_info.num_native_events = num_events;
    _infiniband_vector.cmp_info.num_cntrs = num_events;
    _infiniband_vector.cmp_info.num_mpx_cntrs = num_events;
    _infiniband_vector.cmp_info.CmpIdx = cidx;
    return (result);
}
static int _infiniband_init_component ( int cidx ) { int result = find_ib_devices ( ) ; if ( result != PAPI_OK ) { deallocate_infiniband_resources ( ) ; } _infiniband_vector . cmp_info . num_native_events = num_events ; _infiniband_vector . cmp_info . num_cntrs = num_events ; _infiniband_vector . cmp_info . num_mpx_cntrs = num_events ; _infiniband_vector . cmp_info . CmpIdx = cidx ; return ( result ) ; }
Initialize hardware counters, setup the function vector table
 and get hardware information, this routine is called when the
 PAPI process is initialized (IE PAPI_library_init)
Initialize hardware counters setup the function vector table and get hardware information this routine is called when the PAPI process is initialized ( IE PAPI_library_init )
/* discover Infiniband devices and available events */ // we couldn't initialize the component // deallocate any eventually allocated memory /* Export the component id */