Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static inline void rht_lock(struct bucket_table *tbl, struct rhash_lock_head **bkt)

Type:void

Parameter:

TypeParameterName
struct bucket_table *tbl
struct rhash_lock_head **bkt
330  local_bh_disable()
331  -based spin_lock()* Don't use this unless you really need to: spin_lock() and spin_unlock()* are significantly faster.
332  lock_map_acquire( & dep_map)
Caller
NameDescribe
rhashtable_rehash_chain
rhashtable_try_insert