Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lockdep_reset

Proto:void lockdep_reset(void)

Type:void

Parameter:Nothing

4753  raw_local_irq_save(flags)
4754  lockdep_init_task(current process)
4755  memset(held_locks, 0, MAX_LOCK_DEPTH * size of 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  When i < CHAINHASH_SIZE cycle INIT_HLIST_HEAD(chainhash_table + i)
4762  raw_local_irq_restore(flags)
Caller
NameDescribe
reset_locks