函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:_sync_exit() - Allow readers back onto fast path after grace period*@rsp: Pointer to rcu_sync structure to use for synchronization* This function is used by updaters who have completed, and can therefore* now allow readers to make use of their fastpaths

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

返回类型:void

参数:

类型参数名称
struct rcu_sync *rsp
170  WARN_ON_ONCE(READ_ONCE(gp_state) == GP_IDLE)
171  WARN_ON_ONCE(READ_ONCE(gp_count) == 0)
173  spin_lock_irq( & rss_lock)
174  如果非gp_count先自减则
175  如果gp_state恒等于GP_PASSED
178  否则如果gp_state恒等于GP_EXIT
182  spin_unlock_irq( & rss_lock)
调用者
名称描述
percpu_up_write