函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:void percpu_ref_resurrect(struct percpu_ref *ref)

返回类型:void

参数:

类型参数名称
struct percpu_ref *ref
391  __percpupercpu_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计数引用增
401  __percpu_ref_switch_mode(ref, NULL)
403  spin_unlock_irqrestore( & percpu_ref_switch_lock, flags)
调用者
名称描述
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
blk_mq_unfreeze_queue