src/components/io/linux-io.c
/** Takes a native event code and passes back the name 
 * @param EventCode is the native event code
 * @param name is a pointer for the name to be copied to
 * @param len is the size of the name string
 */
Takes a native event code and passes back the name
@param EventCode is the native event code
@param name is a pointer for the name to be copied to
@param len is the size of the name string
Takes a native event code and passes back the name @param EventCode is the native event code @param name is a pointer for the name to be copied to @param len is the size of the name string
static int
_io_ntv_code_to_name( unsigned int EventCode, char *name, int len )
{
    int index;
    index = EventCode;
    if (index >= 0 && index < gEventCount) {
        strncpy(name, io_native_table[index].name, len );  
        return PAPI_OK;
    }
    return PAPI_ENOEVNT;
}
static int _io_ntv_code_to_name ( unsigned int EventCode , char * name , int len ) { int index ; index = EventCode ; if ( index >= 0 && index < gEventCount ) { strncpy ( name , io_native_table [ index ] . name , len ) ; return PAPI_OK ; } return PAPI_ENOEVNT ; }
Takes a native event code and passes back the name
 @param EventCode is the native event code
 @param name is a pointer for the name to be copied to
 @param len is the size of the name string
Takes a native event code and passes back the name @param EventCode is the native event code @param name is a pointer for the name to be copied to @param len is the size of the name string
/* Make sure we are in range */