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_mutex

Proto:static inline int kref_put_mutex(struct kref *kref, void (*release)(struct kref *kref), struct mutex *lock)

Type:int

Parameter:

TypeParameterName
struct kref *kref
void (*release
struct mutex *lock
75  If _dec_and_mutex_lock - return holding mutex if able to decrement* refcount to 0*@r: the refcount*@lock: the mutex to be locked* Similar to atomic_dec_and_mutex_lock(), it will WARN on underflow and fail* to decrement when saturated at REFCOUNT_SATURATED Then
76  release(kref)
77  Return 1
79  Return 0