函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:_sync_dtor() - Clean up an rcu_sync structure*@rsp: Pointer to rcu_sync structure to be cleaned up

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

返回类型:void

参数:

类型参数名称
struct rcu_sync *rsp
193  WARN_ON_ONCE(READ_ONCE(gp_count))
194  WARN_ON_ONCE(READ_ONCE(gp_state) == GP_PASSED)
196  spin_lock_irq( & rss_lock)
197  如果gp_state恒等于GP_REPLAYWRITE_ONCE(gp_state, GP_EXIT)
199  gp_state等于gp_state
200  spin_unlock_irq( & rss_lock)
202  如果gp_state不等于GP_IDLE
203  _barrier - Wait until all in-flight call_rcu() callbacks complete
204  WARN_ON_ONCE(gp_state != GP_IDLE)
调用者
名称描述
percpu_free_rwsem