函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\locking\mutex.c Create Date:2022-07-27 10:47:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Internal helper function; C doesn't allow us to hide it :/* DO NOT USE (outside of mutex code).

函数原型:static inline struct task_struct *__mutex_owner(struct mutex *lock)

返回类型:struct task_struct

参数:

类型参数名称
struct mutex *lock
75  返回:atomic_long_read( & owner)按位与MUTEX_FLAGS的反
调用者
名称描述
mutex_is_locked是互斥锁
mutex_trylock_recursive
__ww_mutex_woundWound-Wait; wound a younger @hold_ctx if it holds the lock.* Wound the lock holder if there are waiters with older transactions than* the lock holders. Even if multiple waiters may wound the lock holder,* it's sufficient that only one does.