Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rcu\rcu.h Create Date:2022-07-28 10:17:35
Last Modify:2022-05-19 07:39:19 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:static inline bool __rcu_reclaim(const char *rn, struct callback_head *head)

Type:bool

Parameter:

TypeParameterName
const char *rn
struct callback_head *head
210  offset = func
212  rcu_lock_acquire( & rcu_callback_map)
213  If Does the specified offset indicate that the corresponding rcu_head* structure can be handled by kfree_rcu()?(offset) Then
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  Return true
218  Else
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  Return false
Caller
NameDescribe
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.