Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kref_put_lock

Proto:static inline int kref_put_lock(struct kref *kref, void (*release)(struct kref *kref), spinlock_t *lock)

Type:int

Parameter:

TypeParameterName
struct kref *kref
void (*release
spinlock_t *lock
86  If _dec_and_lock - return holding spinlock if able to decrement* refcount to 0*@r: the refcount*@lock: the spinlock to be locked* Similar to atomic_dec_and_lock(), it will WARN on underflow and fail to* decrement when saturated at REFCOUNT_SATURATED Then
87  release(kref)
88  Return 1
90  Return 0