Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\percpu-refcount.c Create Date:2022-07-28 06:24:50
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_percpu - switch a percpu_ref to percpu mode*@ref: percpu_ref to switch to percpu mode* There's no reason to use this function for the usual reference counting.* To re-use an expired ref, use percpu_ref_reinit().

Proto:void percpu_ref_switch_to_percpu(struct percpu_ref *ref)

Type:void

Parameter:

TypeParameterName
struct percpu_ref *ref
312  spin_lock_irqsave( & percpu_ref_switch_lock, flags)
314  force_atomic = false
315  __percpu_ref_switch_mode(ref, NULL)
317  spin_unlock_irqrestore( & percpu_ref_switch_lock, flags)