Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:graph_unlock

Proto:static inline int graph_unlock(void)

Type:int

Parameter:Nothing

110  If 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 && Not clude/linux/spinlock_up( & lockdep_lock: protects the lockdep graph, the hashes and the* class/list/hash allocators.* This is one of the rare exceptions where it's justified* to use a raw spinlock - we really dont want the spinlock* code to recurse back into the lockdep code...) Then
115  Return DEBUG_LOCKS_WARN_ON(1)
118  lockdep_recursion--
119  arch_spin_unlock( & lockdep_lock: protects the lockdep graph, the hashes and the* class/list/hash allocators.* This is one of the rare exceptions where it's justified* to use a raw spinlock - we really dont want the spinlock* code to recurse back into the lockdep code...)
120  Return 0
Caller
NameDescribe
lockdep_register_keyRegister a dynamically allocated key.
register_lock_classRegister a lock's class in the hash-table, if the class is not present* yet. Otherwise we look it up. We cache the result in the lock object* itself, so actual lookup of the hash should be once per lock object.
lockdep_reset_lock_regRemove all information lockdep has about a lock if debug_locks == 1. Free* released data structures from RCU context.
lockdep_unregister_keyUnregister a dynamically allocated key.