函数逻辑报告 |
Source Code:kernel\rcu\sync.c |
Create Date:2022-07-27 11:18:22 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:rcu_sync_func
函数原型:static void rcu_sync_func(struct callback_head *rhp)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct callback_head * | rhp |
| 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 | 如果gp_count则 |
| 86 | WRITE_ONCE(gp_state, GP_PASSED) |
| 87 | wake_up_locked( & gp_wait) |
| 93 | WRITE_ONCE(gp_state, GP_EXIT) |
| 94 | rcu_sync_call(rsp) |
| 95 | 否则 |
| 101 | WRITE_ONCE(gp_state, GP_IDLE) |
| 103 | spin_unlock_irqrestore( & rss_lock, flags) |
| 名称 | 描述 |
|---|---|
| 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 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |