函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\locking\rtmutex.c Create Date:2022-07-27 10:52:13
Last Modify:2020-03-17 14:26:38 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Safe fastpath aware unlock:* 1) Clear the waiters bit* 2) Drop lock->wait_lock* 3) Try to unlock the lock with cmpxchg

函数原型:static inline bool unlock_rt_mutex_safe(struct rt_mutex *lock, unsigned long flags)__releases(lock->wait_lock)

返回类型:bool

参数:

类型参数名称
struct rt_mutex *lock
unsigned longflags
173  owner等于rt_mutex_owner(lock)
175  clear_rt_mutex_waiters(lock)
176  raw_spin_unlock_irqrestore( & 保护自旋锁, flags)
201  返回:rt_mutex_cmpxchg_release(lock, owner, NULL)
调用者
名称描述
rt_mutex_slowunlockSlow path to release a rt-mutex.* Return whether the current task needs to call rt_mutex_postunlock().