函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:percpu_ref_kill_and_confirm - drop the initial ref and schedule confirmation*@ref: percpu_ref to kill*@confirm_kill: optional confirmation callback* Equivalent to percpu_ref_kill() but also schedules kill confirmation if*@confirm_kill is not NULL

函数原型:void percpu_ref_kill_and_confirm(struct percpu_ref *ref, percpu_ref_func_t *confirm_kill)

返回类型:void

参数:

类型参数名称
struct percpu_ref *ref
percpu_ref_func_t *confirm_kill
343  spin_lock_irqsave( & percpu_ref_switch_lock, flags)
345  WARN_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, "%s called more than once on %ps!", __func__, release)
348  * 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
349  __percpu_ref_switch_mode(ref, confirm_kill)
350  percpu计数引用减
352  spin_unlock_irqrestore( & percpu_ref_switch_lock, flags)
调用者
名称描述
kill_css
percpu_ref_killpercpu_ref_kill - drop the initial ref*@ref: percpu_ref to kill* Must be used to drop the initial ref on a percpu refcount; must be called* precisely once before shutdown.* Switches @ref into atomic mode before gathering up the percpu counters