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:Safe fastpath aware unlock:* 1) Clear the waiters bit* 2) Drop lock->wait_lock* 3) Try to unlock the lock with cmpxchg

Proto:static inline bool unlock_rt_mutex_safe(struct rt_mutex *lock, unsigned long flags)__releases(lock->wait_lock)

Type:bool

Parameter:

TypeParameterName
struct rt_mutex *lock
unsigned longflags
173  owner = rt_mutex_owner(lock)
175  clear_rt_mutex_waiters(lock)
176  raw_spin_unlock_irqrestore( & wait_lock, flags)
201  Return rt_mutex_cmpxchg_release(lock, owner, NULL)
Caller
NameDescribe
rt_mutex_slowunlockSlow path to release a rt-mutex.* Return whether the current task needs to call rt_mutex_postunlock().