Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\percpu-refcount.h Create Date:2022-07-28 05:38:03
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:percpu_ref_is_zero - test whether a percpu refcount reached zero*@ref: percpu_ref to test* Returns %true if @ref reached zero.* This function is safe to call as long as @ref is between init and exit.

Proto:static inline bool percpu_ref_is_zero(struct percpu_ref *ref)

Type:bool

Parameter:

TypeParameterName
struct percpu_ref *ref
336  __percpu * percpu_count
338  If 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 Then Return false
340  Return Not atomic_long_read( & count)
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
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