Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rcu\rcu_segcblist.c Create Date:2022-07-28 10:29:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Enqueue the specified callback onto the specified rcu_segcblist* structure, updating accounting as needed

Proto:void rcu_segcblist_enqueue(struct rcu_segcblist *rsclp, struct callback_head *rhp, bool lazy)

Type:void

Parameter:

TypeParameterName
struct rcu_segcblist *rsclp
struct callback_head *rhp
boollazy
258  Increase the numeric length of an rcu_segcblist structure by one.* This can cause the ->len field to disagree with the actual number of* callbacks on the structure. This increase is fully ordered with respect* to the callers accesses both before and after.
259  If lazy Then len_lazy++
261  smp_mb()
262  next = NULL
263  WRITE_ONCE( * tails[RCU_NEXT_TAIL], rhp)
264  WRITE_ONCE(tails[RCU_NEXT_TAIL], & next)
Caller
NameDescribe
__call_rcuHelper function for call_rcu() and friends. The cpu argument will* normally be -1, indicating "currently running CPU". It may specify* a CPU only if that CPU is a no-CBs CPU. Currently, only rcu_barrier()* is expected to specify a CPU.