函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Register a dynamically allocated key.

函数原型:void lockdep_register_key(struct lock_class_key *key)

返回类型:void

参数:

类型参数名称
struct lock_class_key *key
1119  如果WARN_ON_ONCE(Is this the address of a static object:)则返回
1121  hash_head等于keyhashentry(key)
1123  raw_local_irq_save(flags)
1124  如果非graph_lock()则转到:restore_irqs
1127  如果WARN_ON_ONCE(k == key)则转到:out_unlock
1130  添加哈希记录
1131  out_unlock :
1132  graph_unlock()
1133  restore_irqs :
1134  raw_local_irq_restore(flags)