函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Loop doing repeated quiescent-state forcing until the grace period ends.

函数原型:static void rcu_gp_fqs_loop(void)

返回类型:void

参数:

1647  rnp等于Return the root node of the rcu_state structure.
1649  first_gp_fqs = true
1650  j等于READ_ONCE(jiffies_till_first_fqs)
1651  ret等于0
1652  循环
1653  如果非ret
1655  WRITE_ONCE(Time at which to kick , jiffies + (j ? 3 * j : 2))
1658  trace_rcu_grace_period(Name of structure. , READ_ONCE(Grace-period sequence #. ), Strings used in tracepoints need to be exported via the* tracing system such that tools like perf and trace-cmd can* translate the string address pointers to actual text.("fqswait"))
1661  GP kthread sleep state. 等于Wait for force-quiescent-state time.
1662  ret等于swait_event_idle_timeout_exclusive - wait up to timeout without load contribution*@wq: the waitqueue to wait on*@condition: a C expression for the event to wait for*@timeout: timeout at which we'll give up in jiffies* The process is put to sleep (Where GP task waits. , Helper function for swait_event_idle_exclusive() wakeup at force-quiescent-state* time., j)
1664  GP kthread sleep state. 等于Wait done for force-quiescent-state time.
1667  如果非READ_ONCE(CPUs or groups that need to switch in )且非rcu_preempt_blocked_readers_cgp(rnp)则退出
1677  first_gp_fqs = false
1683  ret等于0
1685  否则
1693  ret等于1
1694  j等于jiffies
1697  否则j等于Time at which to invoke j
调用者
名称描述
rcu_gp_kthreadBody of kthread that handles grace periods.