函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lock->owner state tracking:* is used to keep track of the "lock has waiters" state

函数原型:static void rt_mutex_set_owner(struct rt_mutex *lock, struct task_struct *owner)

返回类型:void

参数:

类型参数名称
struct rt_mutex *lock>owner holds the task_struct pointer of the owner. Bit 0
struct task_struct *owner
55  val等于owner
57  如果rt_mutex_has_waiters(>owner holds the task_struct pointer of the owner. Bit 0)则val或等于lock->owner state tracking:
60  独占进程等于val
调用者
名称描述
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
rt_mutex_init_proxy_locked_mutex_init_proxy_locked - initialize and lock a rt_mutex on behalf of a* proxy owner*@lock: the rt_mutex to be locked*@proxy_owner:the task to set as owner* No locking. Caller has to do serializing itself* Special API call for PI-futex support
rt_mutex_proxy_unlock_mutex_proxy_unlock - release a lock on behalf of owner*@lock: the rt_mutex to be locked* No locking. Caller has to do serializing itself* Special API call for PI-futex support. This merrily cleans up the rtmutex* (debugging) state