Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:rcu_sync_func

Proto:static void rcu_sync_func(struct callback_head *rhp)

Type:void

Parameter:

TypeParameterName
struct callback_head *rhp
75  rsp = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(rhp, structrcu_sync, cb_head)
78  WARN_ON_ONCE(READ_ONCE(gp_state) == GP_IDLE)
79  WARN_ON_ONCE(READ_ONCE(gp_state) == GP_PASSED)
81  spin_lock_irqsave( & rss_lock, flags)
82  If gp_count Then
86  WRITE_ONCE(gp_state, GP_PASSED)
87  wake_up_locked( & gp_wait)
88  Else if gp_state == GP_REPLAY Then
93  WRITE_ONCE(gp_state, GP_EXIT)
94  rcu_sync_call(rsp)
95  Else
101  WRITE_ONCE(gp_state, GP_IDLE)
103  spin_unlock_irqrestore( & rss_lock, flags)
Caller
NameDescribe
rcu_sync_enter_sync_enter() - Force readers onto slowpath*@rsp: Pointer to rcu_sync structure to use for synchronization* This function is used by updaters who need readers to make use of* a slowpath during the update