函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rhashtable_rehash_table

函数原型:static int rhashtable_rehash_table(struct rhashtable *ht)

返回类型:int

参数:

类型参数名称
struct rhashtable *ht
305  old_tbl等于rht_dereference(tbl, ht)
311  new_tbl等于rht_dereference(future_tbl, ht)
312  如果非new_tbl则返回:0
315 old_hash小于size循环
316  err等于rhashtable_rehash_chain(ht, old_hash)
317  如果err则返回:err
319  cond_resched()
323  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(tbl, new_tbl)
325  加自旋锁
326  list_for_each_entry - iterate over list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(walker, & walkers, list)
327  tbl = NULL
336  Post an RCU callback to be invoked after the end of an RCU grace* period. But since we have but one CPU, that would be after any* quiescent state.
337  自旋锁解锁
339  返回:如果rht_dereference(future_tbl, ht)则负EAGAIN否则0
调用者
名称描述
rht_deferred_worker