Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:static void __lockdep_free_key_range(struct pending_free *pf, void *start, unsigned long size)

Type:void

Parameter:

TypeParameterName
struct pending_free *pf
void *start
unsigned longsize
4993  When i < CLASSHASH_SIZE cycle
4994  head = classhash_table + i
4996  If Not within(key, start, size) && Not within(name, start, size) Then Continue
4999  Remove all references to a lock class. The caller must hold the graph lock.
Caller
NameDescribe
lockdep_free_key_range_regUsed in module
lockdep_free_key_range_immFree all lockdep keys in the range [start, start+size). Does not sleep.* Ignores debug_locks. Must only be used by the lockdep selftests.
lockdep_unregister_keyUnregister a dynamically allocated key.