linux/include/linux/rhashtable.h
/**
 * rhashtable_lookup_get_insert_key - lookup and insert object into hash table
 * @ht:		hash table
 * @obj:	pointer to hash head inside object
 * @params:	hash table parameters
 * @data:	pointer to element data already in hashes
 *
 * Just like rhashtable_lookup_insert_key(), but this function returns the
 * object if it exists, NULL if it does not and the insertion was successful,
 * and an ERR_PTR otherwise.
 */
lookup and insert object into hash table
@ht:         hash table
@obj:        pointer to hash head inside object
@params:     hash table parameters
@data:       pointer to element data already in hashes

Just like rhashtable_lookup_insert_key(), but this function returns the
object if it exists, NULL if it does not and the insertion was successful,
and an ERR_PTR otherwise.
lookup and insert object into hash table @ht : hash table @obj : pointer to hash head inside object @params : hash table parameters @data : pointer to element data already in hashes Just like rhashtable_lookup_insert_key () but this function returns the object if it exists NULL if it does not and the insertion was successful and an ERR_PTR otherwise .
static inline void *rhashtable_lookup_get_insert_key(
	struct rhashtable *ht, const void *key, struct rhash_head *obj,
	const struct rhashtable_params params)
{
	BUG_ON(!ht->p.obj_hashfn || !key);
	return __rhashtable_insert_fast(ht, key, obj, params, false);
}
static inline void * rhashtable_lookup_get_insert_key ( struct rhashtable * ht , const void * key , struct rhash_head * obj , const struct rhashtable_params params ) { BUG_ON ( ! ht -> p . obj_hashfn || ! key ) ; return __rhashtable_insert_fast ( ht , key , obj , params , false ) ; }
rhashtable_lookup_get_insert_key - lookup and insert object into hash table
 @ht:         hash table
 @obj:        pointer to hash head inside object
 @params:     hash table parameters
 @data:       pointer to element data already in hashes
rhashtable_lookup_get_insert_key - lookup and insert object into hash table @ht : hash table @obj : pointer to hash head inside object @params : hash table parameters @data : pointer to element data already in hashes