Sources/ospboard/opt/osp/src/kernel/include/linux/rhashtable.h
/**
 * rhashtable_lookup_insert_key - search and insert object to hash table
 *				  with explicit key
 * @ht:		hash table
 * @key:	key
 * @obj:	pointer to hash head inside object
 * @params:	hash table parameters
 *
 * Lookups may occur in parallel with hashtable mutations and resizing.
 *
 * Will trigger an automatic deferred table resizing if residency in the
 * table grows beyond 70%.
 *
 * Returns zero on success.
 */
search and insert object to hash table
with explicit key
@ht:         hash table
@key:        key
@obj:        pointer to hash head inside object
@params:     hash table parameters

Lookups may occur in parallel with hashtable mutations and resizing.

Will trigger an automatic deferred table resizing if residency in the
table grows beyond 70%.

Returns zero on success.
search and insert object to hash table with explicit key @ht : hash table @key : key @obj : pointer to hash head inside object @params : hash table parameters Lookups may occur in parallel with hashtable mutations and resizing . Will trigger an automatic deferred table resizing if residency in the table grows beyond 70% . Returns zero on success .
static inline int rhashtable_lookup_insert_key(
	struct rhashtable *ht, const void *key, struct rhash_head *obj,
	const struct rhashtable_params params)
{
	void *ret;
	BUG_ON(!ht->p.obj_hashfn || !key);
	ret = __rhashtable_insert_fast(ht, key, obj, params, false);
	if (IS_ERR(ret))
		return PTR_ERR(ret);
	return ret == NULL ? 0 : -EEXIST;
}
static inline int rhashtable_lookup_insert_key ( struct rhashtable * ht , const void * key , struct rhash_head * obj , const struct rhashtable_params params ) { void * ret ; BUG_ON ( ! ht -> p . obj_hashfn || ! key ) ; ret = __rhashtable_insert_fast ( ht , key , obj , params , false ) ; if ( IS_ERR ( ret ) ) return PTR_ERR ( ret ) ; return ret == NULL ? 0 : - EEXIST ; }
rhashtable_lookup_insert_key - search and insert object to hash table
                                with explicit key
 @ht:         hash table
 @key:        key
 @obj:        pointer to hash head inside object
 @params:     hash table parameters
rhashtable_lookup_insert_key - search and insert object to hash table with explicit key @ht : hash table @key : key @obj : pointer to hash head inside object @params : hash table parameters