openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/mtd-utils/2.1.0+AUTOINC+b5027be5f4-r0/git/ubifs-utils/mkfs.ubifs/devtable.c
struct name_htbl_element*
    first_name_htbl_element(struct path_htbl_element* ph_elt,
                            struct hashtable_itr** itr)
{
    if (!path_htbl || !ph_elt || hashtable_count(ph_elt->name_htbl) == 0)
        return NULL;

    *itr = hashtable_iterator(ph_elt->name_htbl);
    return hashtable_iterator_value(*itr);
}
/**
 * first_name_htbl_element - return first element of the name hash table.
 * @ph_elt: the path hash table the name hash table belongs to
 * @itr: double pointer to a 'struct hashtable_itr' object where the
 *       information about further iterations is stored
 *
 * This function implements name hash table iteration together with
 * 'next_name_htbl_element()'. Returns the first name hash table element or
 * %NULL if the hash table is empty.
 */
return first element of the name hash table.
@ph_elt: the path hash table the name hash table belongs to
@itr: double pointer to a 'struct hashtable_itr' object where the
information about further iterations is stored

This function implements name hash table iteration together with
'next_name_htbl_element()'. Returns the first name hash table element or
%NULL if the hash table is empty.
return first element of the name hash table . @ph_elt : the path hash table the name hash table belongs to @itr : double pointer to a ' struct hashtable_itr ' object where the information about further iterations is stored This function implements name hash table iteration together with ' next_name_htbl_element () ' . Returns the first name hash table element or %NULL if the hash table is empty .
struct name_htbl_element*
    first_name_htbl_element(struct path_htbl_element* ph_elt,
                            struct hashtable_itr** itr)
{
    if (!path_htbl || !ph_elt || hashtable_count(ph_elt->name_htbl) == 0)
        return NULL;
    *itr = hashtable_iterator(ph_elt->name_htbl);
    return hashtable_iterator_value(*itr);
}
struct name_htbl_element * first_name_htbl_element ( struct path_htbl_element * ph_elt , struct hashtable_itr * * itr ) { if ( ! path_htbl || ! ph_elt || hashtable_count ( ph_elt -> name_htbl ) == 0 ) return NULL ; * itr = hashtable_iterator ( ph_elt -> name_htbl ) ; return hashtable_iterator_value ( * itr ) ; }
first_name_htbl_element - return first element of the name hash table.
first_name_htbl_element - return first element of the name hash table .