函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rcu\rcu.h Create Date:2022-07-27 11:17:55
Last Modify:2022-05-19 07:39:19 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Reclaim the specified callback, either by invoking it (non-lazy case)* or freeing it directly (lazy case). Return true if lazy, false otherwise.

函数原型:static inline bool __rcu_reclaim(const char *rn, struct callback_head *head)

返回类型:bool

参数:

类型参数名称
const char *rn
struct callback_head *head
210  offset等于func
212  rcu_lock_acquire( & rcu_callback_map)
213  如果Does the specified offset indicate that the corresponding rcu_head* structure can be handled by kfree_rcu()?(offset)则
214  Tracepoint for the invocation of a single RCU callback of the special* kfree() form
215  kfree((void * )head - offset)
216  rcu_lock_release( & rcu_callback_map)
217  返回:true
218  否则
219  Tracepoint for the invocation of a single RCU callback function.* The first argument is the type of RCU, and the second argument is* a pointer to the RCU callback itself.
220  f等于func
221  WRITE_ONCE(func, (rcu_callback_t)0L)
222  f(head)
223  rcu_lock_release( & rcu_callback_map)
224  返回:false
调用者
名称描述
rcu_do_batchInvoke any RCU callbacks that have made it to the end of their grace* period. Thottle as specified by rdp->blimit.
rcu_process_callbacksInvoke the RCU callbacks whose grace period has elapsed.