Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\percpu-refcount.c Create Date:2022-07-28 06:24:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__percpu_ref_switch_to_atomic

Proto:static void __percpu_ref_switch_to_atomic(struct percpu_ref *ref, percpu_ref_func_t *confirm_switch)

Type:void

Parameter:

TypeParameterName
struct percpu_ref *ref
percpu_ref_func_t *confirm_switch
175  If * 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 Then
176  If confirm_switch Then confirm_switch(ref)
178  Return
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 = If confirm_switch Else percpu_ref_noop_confirm_switch
190  percpu_ref_get - increment a percpu refcount*@ref: percpu_ref to get* Analagous to atomic_long_inc().* This function is safe to call as long as @ref is between init and exit.
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.
Caller
NameDescribe
__percpu_ref_switch_mode