Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Called when kernel memory is freed (or unmapped), or if a lock* is destroyed or reinitialized - this code checks whether there is* any held lock in the memory range of <from> to <to>:

Proto:void debug_check_no_locks_freed(const void *mem_from, unsigned long mem_len)

Type:void

Parameter:

TypeParameterName
const void *mem_from
unsigned longmem_len
5278  curr = current process
5283  If Value for the false possibility is greater at compile time(!We want to turn all lock-debugging facilities on/off at once,* via a global flag. The reason is that once a single bug has been* detected and reported, there might be cascade of followup bugs* that would just muddy the log. So we report the first one and) Then Return
5286  raw_local_irq_save(flags)
5287  When i < lockdep_depth cycle
5288  hlock = held_locks + i
5290  If not_in_range(mem_from, mem_len, instance, size of instance ) Then Continue
5294  print_freed_lock_bug(curr, mem_from, mem_from + mem_len, hlock)
5295  Break
5297  raw_local_irq_restore(flags)
Caller
NameDescribe
debug_mutex_init
debug_rt_mutex_init
__raw_spin_lock_init
__rwlock_init
__init_srcu_struct
__init_srcu_struct
vm_unmap_ramvm_unmap_ram - unmap linear kernel address space set up by vm_map_ram*@mem: the pointer returned by vm_map_ram*@count: the count passed to that vm_map_ram call (cannot unmap partial)
__vunmap
free_pages_prepare
kmem_cache_freekmem_cache_free - Deallocate an object*@cachep: The cache the allocation was from.*@objp: The previously allocated object.* Free an object which was previously allocated from this* cache.
kmem_cache_free_bulk
kfreekfree - free previously allocated memory*@objp: pointer returned by kmalloc.* If @objp is NULL, no operation is performed.* Don't free memory not originally allocated by kmalloc()* or you will run into trouble.