函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:static inline int rhashtable_replace_fast(struct rhashtable *ht, struct rhash_head *obj_old, struct rhash_head *obj_new, const struct rhashtable_params params)

返回类型:int

参数:

类型参数名称
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 err等于Internal function, please use rhashtable_replace_fast() instead tbl等于rht_dereference_rcu(future_tbl, ht)循环
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  返回:err