Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:hashtable_replace_fast - replace an object in hash table*@ht: hash table*@obj_old: pointer to hash head inside object being replaced*@obj_new: pointer to hash head inside object which is new*@params: hash table parameters* Replacing an object doesn't

Proto:static inline int rhashtable_replace_fast(struct rhashtable *ht, struct rhash_head *obj_old, struct rhash_head *obj_new, const struct rhashtable_params params)

Type:int

Parameter:

TypeParameterName
struct rhashtable *ht
struct rhash_head *obj_old
struct rhash_head *obj_new
const struct rhashtable_paramsparams
1215  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
1217  tbl = rht_dereference_rcu(tbl, ht)
1224  When (err = Internal function, please use rhashtable_replace_fast() instead ) && (tbl = rht_dereference_rcu(future_tbl, ht)) cycle
1229  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
1231  Return err