Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Slow path try-lock function:

Proto:static inline int rt_mutex_slowtrylock(struct rt_mutex *lock)

Type:int

Parameter:

TypeParameterName
struct rt_mutex *lock
1317  If rt_mutex_owner(lock) Then Return 0
1324  raw_spin_lock_irqsave( & wait_lock, flags)
1326  ret = __rt_mutex_slowtrylock(lock)
1328  raw_spin_unlock_irqrestore( & wait_lock, flags)
1330  Return ret
Caller
NameDescribe
rt_mutex_futex_trylockFutex variant, must not use fastpath.