函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rcu\sync.c Create Date:2022-07-27 11:18:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:_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

函数原型:void rcu_sync_enter(struct rcu_sync *rsp)

返回类型:void

参数:

类型参数名称
struct rcu_sync *rsp
125  spin_lock_irq( & rss_lock)
126  gp_state等于gp_state
127  如果gp_state恒等于GP_IDLE
128  WRITE_ONCE(gp_state, GP_ENTER)
129  WARN_ON_ONCE(gp_count)
141  gp_count自加
142  spin_unlock_irq( & rss_lock)
144  如果gp_state恒等于GP_IDLE
149  synchronize_rcu - wait until a grace period has elapsed
150  rcu_sync_func( & cb_head)
152  返回
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)
调用者
名称描述
percpu_down_write