函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:void rt_mutex_init_proxy_locked(struct rt_mutex *lock, struct task_struct *proxy_owner)

返回类型:void

参数:

类型参数名称
struct rt_mutex *lock
struct task_struct *proxy_owner
1704  __rt_mutex_init - initialize the rt lock*@lock: the rt lock to be initialized* Initialize the rt lock to unlocked state.* Initializing of a locked rt lock is not allowed
1705  debug_rt_mutex_proxy_lock(lock, proxy_owner)
1706  lock->owner state tracking:* is used to keep track of the "lock has waiters" state
调用者
名称描述
attach_to_pi_ownerLookup the task for the TID provided from user space and attach to* it after doing proper sanity checks.