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:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:static inline bool __ref_is_percpu(struct percpu_ref *ref, unsigned long __percpu **percpu_countp)

Type:bool

Parameter:

TypeParameterName
struct percpu_ref *ref
unsigned long __percpu **percpu_countp
161  percpu_ptr = READ_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.)
169  If Value for the false possibility is greater at compile time(percpu_ptr & __PERCPU_REF_ATOMIC_DEAD) Then Return false
172  percpu_countp = percpu_ptr
173  Return true
Caller
NameDescribe
percpu_ref_resurrectpercpu_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