Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:_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

Proto:void rcu_sync_enter(struct rcu_sync *rsp)

Type:void

Parameter:

TypeParameterName
struct rcu_sync *rsp
125  spin_lock_irq( & rss_lock)
126  gp_state = gp_state
127  If gp_state == GP_IDLE Then
128  WRITE_ONCE(gp_state, GP_ENTER)
129  WARN_ON_ONCE(gp_count)
141  gp_count++
142  spin_unlock_irq( & rss_lock)
144  If gp_state == GP_IDLE Then
149  synchronize_rcu - wait until a grace period has elapsed
150  rcu_sync_func( & cb_head)
152  Return
155  wait_event - sleep until a condition gets true*@wq_head: the waitqueue to wait on*@condition: a C expression for the event to wait for* The process is put to sleep (TASK_UNINTERRUPTIBLE) until the*@condition evaluates to true(gp_wait, READ_ONCE(gp_state) >= GP_PASSED)