Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\locking\mutex.c Create Date:2022-07-28 09:47:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:static inline struct task_struct *__mutex_owner(struct mutex *lock)

Type:struct task_struct

Parameter:

TypeParameterName
struct mutex *lock
75  Return atomic_long_read( & owner) & ~MUTEX_FLAGS
Caller
NameDescribe
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.