函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static inline void mark_rt_mutex_waiters(struct rt_mutex *lock)

返回类型:void

参数:

类型参数名称
struct rt_mutex *lock
155  unsigned long owner, * p = (unsigned long * ) & 独占进程
157  循环
158  owner等于p
159 cmpxchg_relaxed(p, owner, owner | lock->owner state tracking:)不等于owner循环
调用者
名称描述
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