函数逻辑报告 |
Source Code:kernel\rcu\srcutree.c |
Create Date:2022-07-27 11:19:09 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:If SRCU is likely idle, return true, otherwise return false.* Note that it is OK for several current from-idle requests for a new* grace period from idle to specify expediting because they will all end* up requesting the same grace period anyhow
函数原型:static bool srcu_might_be_idle(struct srcu_struct *ssp)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct srcu_struct * | ssp |
768 | local_irq_save(flags) |
769 | sdp等于this_cpu_ptr(sda) |
771 | local_irq_restore(flags) |
772 | 返回:false |
774 | local_irq_restore(flags) |
783 | t等于ktime_get_mono_fast_ns() |
784 | tlast等于READ_ONCE(srcu_last_gp_end) |
785 | 如果exp_holdoff恒等于0或Calculate whether a is in the range of [b, c).(t, tlast, tlast + exp_holdoff)则返回:false |
791 | smp_mb() |
792 | 如果ULONG_CMP_LT(curseq, READ_ONCE(srcu_gp_seq_needed))则返回:false |
794 | smp_mb() |
797 | 返回:true |
名称 | 描述 |
---|---|
synchronize_srcu | synchronize_srcu - wait for prior SRCU read-side critical-section completion*@ssp: srcu_struct with which to synchronize |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |