函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rhashtable_rehash_chain

函数原型:static int rhashtable_rehash_chain(struct rhashtable *ht, unsigned int old_hash)

返回类型:int

参数:

类型参数名称
struct rhashtable *ht
unsigned intold_hash
268  old_tbl等于rht_dereference(tbl, ht)
269  bkt等于rht_bucket_var(old_tbl, old_hash)
272  如果非bkt则返回:0
274  We lock a bucket by setting BIT(0) in the pointer - this is always* zero in real pointers. The NULLS mark is never stored in the bucket,* rather we store NULL if the bucket is empty.* bit_spin_locks do not handle contention well, but the whole point
276  当非err等于rhashtable_rehash_one(ht, bkt, old_hash)循环
279  如果err恒等于负ENOENTerr等于0
281  rht_unlock(old_tbl, bkt)
283  返回:err
调用者
名称描述
rhashtable_rehash_table