Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:rht_head_hashfn

Proto:static inline unsigned int rht_head_hashfn(struct rhashtable *ht, const struct bucket_table *tbl, const struct rhash_head *he, const struct rhashtable_params params)

Type:unsigned int

Parameter:

TypeParameterName
struct rhashtable *ht
const struct bucket_table *tbl
const struct rhash_head *he
const struct rhashtable_paramsparams
168  ptr = rht_obj(ht, he)
170  Return If Value is more likely to compile time(obj_hashfn) Then rht_bucket_index(tbl, obj_hashfn(ptr, key_len ? : key_len, hash_rnd)) Else rht_key_hashfn(ht, tbl, ptr + key_offset, params)
Caller
NameDescribe
head_hashfn
rhashtable_try_insert