函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rht_head_hashfn

函数原型: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)

返回类型:unsigned int

参数:

类型参数名称
struct rhashtable *ht
const struct bucket_table *tbl
const struct rhash_head *he
const struct rhashtable_paramsparams
168  ptr等于rht_obj(ht, he)
170  返回:如果此条件成立可能性大(为编译器优化)(obj_hashfn)则rht_bucket_index(tbl, obj_hashfn(ptr, key_len ? : key_len, hash_rnd))否则rht_key_hashfn(ht, tbl, ptr + key_offset, params)
调用者
名称描述
head_hashfn
rhashtable_try_insert
__rhashtable_insert_fastInternal function, please use rhashtable_insert_fast() instead. This* function returns the existing element already in hashes in there is a clash,* otherwise it returns an error via ERR_PTR().
__rhashtable_remove_fast_oneInternal function, please use rhashtable_remove_fast() instead
__rhashtable_replace_fastInternal function, please use rhashtable_replace_fast() instead
head_hashfn