Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:percpu_ref_resurrect - modify a percpu refcount from dead to live*@ref: perpcu_ref to resurrect* Modify @ref so that it's in the same state as before percpu_ref_kill() was* called

Proto:void percpu_ref_resurrect(struct percpu_ref *ref)

Type:void

Parameter:

TypeParameterName
struct percpu_ref *ref
391  __percpu * percpu_count
394  spin_lock_irqsave( & percpu_ref_switch_lock, flags)
396  WARN_ON_ONCE(!(* 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_DEAD))
397  WARN_ON_ONCE(Internal helper. Don't use outside percpu-refcount proper. The* function doesn't return the pointer and let the caller test it for NULL* because doing so forces the compiler to generate two conditional)
399  * 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_DEAD
400  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.
401  __percpu_ref_switch_mode(ref, NULL)
403  spin_unlock_irqrestore( & percpu_ref_switch_lock, flags)
Caller
NameDescribe
percpu_ref_reinitpercpu_ref_reinit - re-initialize a percpu refcount*@ref: perpcu_ref to re-initialize* Re-initialize @ref so that it's in the same state as when it finished* percpu_ref_init() ignoring %PERCPU_REF_INIT_DEAD. @ref must have been