kfusd/kfusd.c
static int find_fusd_file(fusd_dev_t *fusd_dev, fusd_file_t *fusd_file)
{
	int i, num_files = fusd_dev->num_files;
	fusd_file_t **files = fusd_dev->files;

	for (i = 0; i < num_files; i++)
		if (files[i] == fusd_file)
			return i;

	return -1;
}
/* utility function to find the index of a fusd_file in a fusd_dev.
 * returns index if found, -1 if not found.  ASSUMES WE HAVE A VALID
 * fusd_dev.  fusd_file may be NULL if we are searching for an empty
 * slot. */
utility function to find the index of a fusd_file in a fusd_dev.
returns index if found, -1 if not found.  ASSUMES WE HAVE A VALID
fusd_dev.  fusd_file may be NULL if we are searching for an empty
slot.
utility function to find the index of a fusd_file in a fusd_dev . returns index if found - 1 if not found . ASSUMES WE HAVE A VALID fusd_dev . fusd_file may be NULL if we are searching for an empty slot .
static int find_fusd_file(fusd_dev_t *fusd_dev, fusd_file_t *fusd_file)
{
	int i, num_files = fusd_dev->num_files;
	fusd_file_t **files = fusd_dev->files;
	for (i = 0; i < num_files; i++)
		if (files[i] == fusd_file)
			return i;
	return -1;
}
static int find_fusd_file ( fusd_dev_t * fusd_dev , fusd_file_t * fusd_file ) { int i , num_files = fusd_dev -> num_files ; fusd_file_t * * files = fusd_dev -> files ; for ( i = 0 ; i < num_files ; i ++ ) if ( files [ i ] == fusd_file ) return i ; return -1 ; }
utility function to find the index of a fusd_file in a fusd_dev.
utility function to find the index of a fusd_file in a fusd_dev .