Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\locking\rtmutex.c Create Date:2022-07-28 09:51:57
Last Modify:2020-03-17 14:26:38 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Callers must hold the ->wait_lock -- which is the whole purpose as we force* all future threads that attempt to [Rmw] the lock to the slowpath. As such* relaxed semantics suffice.

Proto:static inline void mark_rt_mutex_waiters(struct rt_mutex *lock)

Type:void

Parameter:

TypeParameterName
struct rt_mutex *lock
155  unsigned long owner, * p = (unsigned long * ) & owner
157  Do
158  owner = p
159  When cmpxchg_relaxed(p, owner, owner | lock->owner state tracking:) != owner cycle
Caller
NameDescribe
try_to_take_rt_mutexTry to take an rt-mutex* Must be called with lock->wait_lock held and interrupts disabled*@lock: The lock to be acquired