函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kref_put_mutex

函数原型:static inline int kref_put_mutex(struct kref *kref, void (*release)(struct kref *kref), struct mutex *lock)

返回类型:int

参数:

类型参数名称
struct kref *kref
void (*release
struct mutex *lock
75  如果_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
76  release(kref)
77  返回:1
79  返回:0