函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rht_key_get_hash

函数原型:static inline unsigned int rht_key_get_hash(struct rhashtable *ht, const void *key, const struct rhashtable_params params, unsigned int hash_rnd)

返回类型:unsigned int

参数:

类型参数名称
struct rhashtable *ht
const void *key
const struct rhashtable_paramsparams
unsigned inthash_rnd
132  如果非__builtin_constant_p(key_len)则hash等于hashfn(key, key_len, hash_rnd)
134  否则如果key_len
135  key_len等于key_len
137  如果hashfnhash等于hashfn(key, key_len, hash_rnd)
139  否则如果key_len按位与sizeof(u32)减1则hash等于jhash - hash an arbitrary key*@k: sequence of bytes as key*@length: the length of the key*@initval: the previous hash, or an arbitray value* The generic version, hashes an arbitrary sequence of bytes.
141  否则hash等于jhash2 - hash an array of u32's*@k: the key which must be an array of u32's*@length: the number of u32's in the key*@initval: the previous hash, or an arbitray value* Returns the hash value of the key.
143  否则
144  key_len等于key_len
146  如果hashfnhash等于hashfn(key, key_len, hash_rnd)
148  否则hash等于jhash - hash an arbitrary key*@k: sequence of bytes as key*@length: the length of the key*@initval: the previous hash, or an arbitray value* The generic version, hashes an arbitrary sequence of bytes.
152  返回:hash
调用者
名称描述
rht_key_hashfn