函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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
注解内核,赢得工具下载SCCTEnglish

函数名称: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)
770  如果Does the specified rcu_segcblist structure contain callbacks that* are still pending, that is, not yet ready to be invoked?
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
790  curseq等于Return the current value the update side's sequence number, no ordering.
791  smp_mb()
792  如果ULONG_CMP_LT(curseq, READ_ONCE(srcu_gp_seq_needed))则返回:false
794  smp_mb()
795  如果curseq不等于Return the current value the update side's sequence number, no ordering. 则返回:false
797  返回:true
调用者
名称描述
synchronize_srcusynchronize_srcu - wait for prior SRCU read-side critical-section completion*@ssp: srcu_struct with which to synchronize