函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Unregister a dynamically allocated key.

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

返回类型:void

参数:

类型参数名称
struct lock_class_key *key
5167  hash_head等于keyhashentry(key)
5171  bool found = false
5173  might_sleep()
5175  如果WARN_ON_ONCE(Is this the address of a static object:)则返回
5178  raw_local_irq_save(flags)
5179  如果非graph_lock()则转到:out_irq
5182  pf等于The caller must hold the graph lock.
5184  如果k恒等于key
5185  删除哈希表中无需重新初始化的条目
5186  found = true
5187  退出
5190  WARN_ON_ONCE(!found)
5191  Remove all lock classes from the class hash table and from the* all_lock_classes list whose key or name is in the address range [start,* start + size). Move these lock classes to the zapped_classes list. Must* be called with the graph lock held.
5192  Schedule an RCU callback if no RCU callback is pending. Must be called with* the graph lock held.
5193  graph_unlock()
5194  out_irq :
5195  raw_local_irq_restore(flags)
5198  synchronize_rcu()