Function report | 
Source Code:kernel\rcu\srcutree.c | 
Create Date:2022-07-28 10:19:00 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Core SRCU state machine. Push state bits of ->srcu_gp_seq* to SRCU_STATE_SCAN2, and invoke srcu_gp_end() when scan has* completed in that state.
Proto:static void srcu_advance_state(struct srcu_struct *ssp)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct srcu_struct * | ssp | 
| 1095 | mutex_lock( & srcu_gp_mutex) | 
| 1107 | idx = Return the state portion of a sequence number previously returned* by rcu_seq_snap() or rcu_seq_current(). | 
| 1108 | If idx == SRCU_STATE_IDLE Then | 
| 1109 | spin_lock_irq_rcu_node(ssp) | 
| 1110 | If ULONG_CMP_GE(srcu_gp_seq, srcu_gp_seq_needed) Then | 
| 1111 | WARN_ON_ONCE(Return the state portion of a sequence number previously returned* by rcu_seq_snap() or rcu_seq_current().) | 
| 1112 | spin_unlock_irq_rcu_node(ssp) | 
| 1114 | Return | 
| 1116 | idx = Return the state portion of a sequence number previously returned* by rcu_seq_snap() or rcu_seq_current(). | 
| 1117 | If idx == SRCU_STATE_IDLE Then Start an SRCU grace period. | 
| 1119 | spin_unlock_irq_rcu_node(ssp) | 
| 1120 | If idx != SRCU_STATE_IDLE Then | 
| 1127 | idx = 1 ^ Current reader array element. & 1 | 
| 1142 | idx = 1 ^ Current reader array element. & 1 | 
| Name | Describe | 
|---|---|
| process_srcu | 
| 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  |