函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lockdep_reset

函数原型:void lockdep_reset(void)

返回类型:void

参数:

4753  raw_local_irq_save(flags)
4754  lockdep_init_task(当前进程)
4755  memset(held_locks, 0, MAX_LOCK_DEPTH * held_lock的长度)
4756  nr_hardirq_chains等于0
4757  nr_softirq_chains等于0
4758  nr_process_chains等于0
4759  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等于1
4760 i小于CHAINHASH_SIZE循环INIT_HLIST_HEAD(chain哈希表 + i)
4762  raw_local_irq_restore(flags)
调用者
名称描述
reset_locks