Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:We fill out the fields in the waiter to store the information about* the deadlock. We print when we return. act_waiter can be NULL in* case of a remove waiter operation.

Proto:void debug_rt_mutex_deadlock(enum rtmutex_chainwalk chwalk, struct rt_mutex_waiter *act_waiter, struct rt_mutex *lock)

Type:void

Parameter:

TypeParameterName
enum rtmutex_chainwalkchwalk
struct rt_mutex_waiter *act_waiter
struct rt_mutex *lock
77  If Not We want to turn all lock-debugging facilities on/off at once,* via a global flag. The reason is that once a single bug has been* detected and reported, there might be cascade of followup bugs* that would just muddy the log. So we report the first one and || chwalk == Invoke deadlock detection with a full || Not act_waiter Then Return
80  task = rt_mutex_owner(lock)
81  If task && task != current process Then
82  deadlock_task_pid = get_pid(task_pid(task))
83  deadlock_lock = lock
Caller
NameDescribe
rt_mutex_adjust_prio_chainAdjust the priority chain