Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\locking\rtmutex.c Create Date:2022-07-28 09:51:55
Last Modify:2020-03-17 14:26:38 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:lock->owner state tracking:* is used to keep track of the "lock has waiters" state

Proto:static void rt_mutex_set_owner(struct rt_mutex *lock, struct task_struct *owner)

Type:void

Parameter:

TypeParameterName
struct rt_mutex *lock>owner holds the task_struct pointer of the owner. Bit 0
struct task_struct *owner
55  val = owner
57  If rt_mutex_has_waiters(>owner holds the task_struct pointer of the owner. Bit 0) Then val |= lock->owner state tracking:
60  owner = val
Caller
NameDescribe
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