Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Free all lockdep keys in the range [start, start+size). Does not sleep.* Ignores debug_locks. Must only be used by the lockdep selftests.

Proto:static void lockdep_free_key_range_imm(void *start, unsigned long size)

Type:void

Parameter:

TypeParameterName
void *start
unsigned longsize
5042  pf = pf
5045  Initialize the lock_classes[] array elements, the free_lock_classes list* and also the delayed_free structure.
5047  raw_local_irq_save(flags)
5048  r sched/core.c and kernel_lock.c: ( & 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...)
5049  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.
5050  The caller must hold the graph lock. May be called from RCU context.
5051  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...)
5052  raw_local_irq_restore(flags)
Caller
NameDescribe
lockdep_free_key_range