Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:rhashtable_rehash_chain

Proto:static int rhashtable_rehash_chain(struct rhashtable *ht, unsigned int old_hash)

Type:int

Parameter:

TypeParameterName
struct rhashtable *ht
unsigned intold_hash
268  old_tbl = rht_dereference(tbl, ht)
269  bkt = rht_bucket_var(old_tbl, old_hash)
272  If Not bkt Then Return 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  When Not (err = rhashtable_rehash_one(ht, bkt, old_hash)) cycle
279  If err == -ENOENT Then err = 0
281  rht_unlock(old_tbl, bkt)
283  Return err
Caller
NameDescribe
rhashtable_rehash_table