函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:reacquire_held_locks

函数原型:static int reacquire_held_locks(struct task_struct *curr, unsigned int depth, int idx, unsigned int *merged)

返回类型:int

参数:

类型参数名称
struct task_struct *curr
unsigned intdepth
intidx
unsigned int *merged
4086  first_idx等于idx
4088  如果DEBUG_LOCKS_WARN_ON(!已禁止中断())则返回:0
4091 idx小于depth循环
4100  返回:1
4102  退出
4104  merged加等于idx恒等于first_idx
4105  退出
4106  默认
4107  WARN_ON(1)
4108  返回:0
4111  返回:0
调用者
名称描述
__lock_set_class
__lock_downgrade
__lock_releaseRemove the lock from the list of currently held locks - this gets* called on mutex_unlock()/spin_unlock*() (or on a failed* mutex_lock_interruptible()).