函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:void debug_rt_mutex_deadlock(enum rtmutex_chainwalk chwalk, struct rt_mutex_waiter *act_waiter, struct rt_mutex *lock)

返回类型:void

参数:

类型参数名称
enum rtmutex_chainwalkchwalk
struct rt_mutex_waiter *act_waiter
struct rt_mutex *lock
77  如果非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 andchwalk恒等于 Invoke deadlock detection with a full或非act_waiter则返回
80  task等于rt_mutex_owner(lock)
81  如果tasktask不等于当前进程
82  deadlock_task_pid等于get_pid(task_pid(task))
83  deadlock_lock等于lock
调用者
名称描述
rt_mutex_adjust_prio_chainAdjust the priority chain