函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\rhashtable.h Create Date:2022-07-27 07:05:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Internal function, do not use.

函数原型:static inline struct rhash_head *__rhashtable_lookup(struct rhashtable *ht, const void *key, const struct rhashtable_params params)

返回类型:struct rhash_head

参数:

类型参数名称
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  循环
607  如果如果obj_cmpfnobj_cmpfn( & arg, rht_obj(ht, he))否则rhashtable_compare( & arg, rht_obj(ht, he))则继续下一循环
611  返回:he
616 he不等于NULLS_MARKER() expects a hash value with the low* bits mostly likely to be significant, and it discards* the msb(bkt)循环
619  smp_rmb()
621  tbl等于rht_dereference_rcu(future_tbl, ht)
622  如果此条件成立可能性小(为编译器优化)(tbl)则转到:restart
625  返回:NULL
调用者
名称描述
rhashtable_lookuphashtable_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
rhltable_lookuphltable_lookup - search hash list table*@hlt: 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