函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:判断percpu无计数引用

函数原型:static inline bool percpu_ref_is_zero(struct percpu_ref *ref)

返回类型:bool

参数:

类型参数名称
struct percpu_ref *ref
336  __percpupercpu_count
338  如果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则返回:false
340  返回:非atomic_long_read( & count)
调用者
名称描述
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
update_effective_progs
blk_mq_freeze_queue_wait
blk_mq_freeze_queue_wait_timeout
blk_pre_runtime_suspendlk_pre_runtime_suspend - Pre runtime suspend check*@q: the queue of the device* Description:* This function will check if runtime suspend is allowed for the device* by examining if there are any requests pending in the queue