Function report |
Source Code:kernel\rcu\tree.c |
Create Date:2022-07-28 10:26:14 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Loop doing repeated quiescent-state forcing until the grace period ends.
Proto:static void rcu_gp_fqs_loop(void)
Type:void
Parameter:Nothing
| 1649 | first_gp_fqs = true |
| 1650 | j = READ_ONCE(jiffies_till_first_fqs) |
| 1651 | ret = 0 |
| 1652 | cycle |
| 1653 | If Not ret Then |
| 1654 | Time at which to invoke = jiffies + j |
| 1655 | WRITE_ONCE(Time at which to kick , jiffies + (j ? 3 * j : 2)) |
| 1667 | If Not READ_ONCE(CPUs or groups that need to switch in ) && Not rcu_preempt_blocked_readers_cgp(rnp) Then Break |
| 1671 | If ULONG_CMP_GE(jiffies, Time at which to invoke ) || gf & Need grace-period quiescent-state forcing. Then |
| 1677 | first_gp_fqs = false |
| 1682 | WRITE_ONCE(Time of last GP kthread , jiffies) |
| 1683 | ret = 0 |
| 1684 | j = READ_ONCE(jiffies_till_next_fqs) |
| 1685 | Else |
| 1688 | WRITE_ONCE(Time of last GP kthread , jiffies) |
| 1689 | WARN_ON(signal_pending(current process)) |
| 1693 | ret = 1 |
| 1697 | Else j = Time at which to invoke - j |
| Name | Describe |
|---|---|
| rcu_gp_kthread | Body of kthread that handles grace periods. |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |