函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Increment the ->srcu_idx counter so that future SRCU readers will* use the other rank of the ->srcu_(un)lock_count[] arrays. This allows* us to wait for pre-existing readers in a starvation-free manner.

函数原型:static void srcu_flip(struct srcu_struct *ssp)

返回类型:void

参数:

类型参数名称
struct srcu_struct *ssp
724  smp_mb()
726  WRITE_ONCE( Current reader array element. , Current reader array element. + 1)
735  smp_mb()
调用者
名称描述
srcu_advance_stateCore 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.