Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\rhashtable.h Create Date:2022-07-28 06:07:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Internal function, do not use.

Proto:static inline struct rhash_head *__rhashtable_lookup(struct rhashtable *ht, const void *key, const struct rhashtable_params params)

Type:struct rhash_head

Parameter:

TypeParameterName
struct rhashtable *ht
const void *key
const struct rhashtable_paramsparams
592  struct rhashtable_compare_arg arg = {ht = ht, key = key, }
601  tbl = rht_dereference_rcu(tbl, ht)
602  restart :
603  hash = rht_key_hashfn(ht, tbl, key, params)
604  bkt = rht_bucket(tbl, hash)
605  Do
607  If If obj_cmpfn Then obj_cmpfn( & arg, rht_obj(ht, he)) Else rhashtable_compare( & arg, rht_obj(ht, he)) Then Continue
611  Return he
616  When he != NULLS_MARKER() expects a hash value with the low* bits mostly likely to be significant, and it discards* the msb(bkt) cycle
619  smp_rmb()
621  tbl = rht_dereference_rcu(future_tbl, ht)
622  If Value for the false possibility is greater at compile time(tbl) Then Go to restart
625  Return NULL