Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Unregister a dynamically allocated key.

Proto:void lockdep_unregister_key(struct lock_class_key *key)

Type:void

Parameter:

TypeParameterName
struct lock_class_key *key
5167  hash_head = keyhashentry(key)
5171  bool found = false
5173  might_sleep()
5175  If WARN_ON_ONCE(Is this the address of a static object:) Then Return
5178  raw_local_irq_save(flags)
5179  If Not graph_lock() Then Go to out_irq
5182  pf = The caller must hold the graph lock.
5184  If k == key Then
5185  hlist_del_rcu - deletes entry from hash list without re-initialization*@n: the element to delete from the hash list.* Note: list_unhashed() on entry does not return true after this,* the entry is in an undefined state. It is useful for RCU based
5186  found = true
5187  Break
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()