kernels/linux-2.4.0/arch/ia64/sn/io/labelcl.c
/*
 * labelcl_info_get_IDX - Returns the information pointed at by index.
 *
 */
Returns the information pointed at by index.
Returns the information pointed at by index .
int
labelcl_info_get_IDX(devfs_handle_t de,
			int index,
			arbitrary_info_t *info)
{
	arbitrary_info_t *info_list_IDX;
	labelcl_info_t	*labelcl_info = NULL;
	if (de == NULL)
		return(-1);
	labelcl_info = devfs_get_info(de);
	if (labelcl_info == NULL)
		return(-1);
	if (labelcl_info->hwcl_magic != LABELCL_MAGIC)
		return(-1);
	if ( (index < 0) || (index >= HWGRAPH_NUM_INDEX_INFO) )
		return(-1);
	info_list_IDX = labelcl_info->IDX_list;
	if (info != NULL)
		*info = info_list_IDX[index];
	return(0);
}
int labelcl_info_get_IDX ( devfs_handle_t de , int index , arbitrary_info_t * info ) { arbitrary_info_t * info_list_IDX ; labelcl_info_t * labelcl_info = NULL ; if ( de == NULL ) return ( -1 ) ; labelcl_info = devfs_get_info ( de ) ; if ( labelcl_info == NULL ) return ( -1 ) ; if ( labelcl_info -> hwcl_magic != LABELCL_MAGIC ) return ( -1 ) ; if ( ( index < 0 ) || ( index >= HWGRAPH_NUM_INDEX_INFO ) ) return ( -1 ) ; info_list_IDX = labelcl_info -> IDX_list ; if ( info != NULL ) * info = info_list_IDX [ index ] ; return ( 0 ) ; }
labelcl_info_get_IDX - Returns the information pointed at by index.
labelcl_info_get_IDX - Returns the information pointed at by index .
/*
	 * Return information at the appropriate index in this vertex.
	 */