kernel/include/linux/rhashtable.h
/**
 * rhashtable_lookup - search hash table
 * @ht:		hash table
 * @key:	the pointer to the key
 * @params:	hash table parameters
 *
 * Computes the hash value for the key and traverses the bucket chain looking
 * for a entry with an identical key. The first matching entry is returned.
 *
 * This must only be called under the RCU read lock.
 *
 * Returns the first entry on which the compare function returned true.
 */
search hash table
@ht:         hash table
@key:        the pointer to the key
@params:     hash table parameters

Computes the hash value for the key and traverses the bucket chain looking
for a entry with an identical key. The first matching entry is returned.

This must only be called under the RCU read lock.

Returns the first entry on which the compare function returned true.
search hash table @ht : hash table @key : the pointer to the key @params : hash table parameters Computes the hash value for the key and traverses the bucket chain looking for a entry with an identical key . The first matching entry is returned . This must only be called under the RCU read lock . Returns the first entry on which the compare function returned true .
static inline void *rhashtable_lookup(
	struct rhashtable *ht, const void *key,
	const struct rhashtable_params params)
{
	struct rhash_head *he = __rhashtable_lookup(ht, key, params);
	return he ? rht_obj(ht, he) : NULL;
}
static inline void * rhashtable_lookup ( struct rhashtable * ht , const void * key , const struct rhashtable_params params ) { struct rhash_head * he = __rhashtable_lookup ( ht , key , params ) ; return he ? rht_obj ( ht , he ) : NULL ; }
rhashtable_lookup - search hash table
 @ht:         hash table
 @key:        the pointer to the key
 @params:     hash table parameters
rhashtable_lookup - search hash table @ht : hash table @key : the pointer to the key @params : hash table parameters