函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__percpu_ref_switch_to_atomic

函数原型:static void __percpu_ref_switch_to_atomic(struct percpu_ref *ref, percpu_ref_func_t *confirm_switch)

返回类型:void

参数:

类型参数名称
struct percpu_ref *ref
percpu_ref_func_t *confirm_switch
175  如果* The low bit of the pointer indicates whether the ref is in percpu * mode; if set, then get/put will manipulate the atomic_t.按位与__PERCPU_REF_ATOMIC
176  如果confirm_switchconfirm_switch(ref)
178  返回
182  * The low bit of the pointer indicates whether the ref is in percpu * mode; if set, then get/put will manipulate the atomic_t.或等于__PERCPU_REF_ATOMIC
188  confirm_switch等于如果confirm_switch否则percpu_ref_noop_confirm_switch
190  percpu计数引用增
191  Post an RCU callback to be invoked after the end of an RCU grace* period. But since we have but one CPU, that would be after any* quiescent state.
调用者
名称描述
__percpu_ref_switch_mode