函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static void lockdep_free_key_range_imm(void *start, unsigned long size)

返回类型:void

参数:

类型参数名称
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)
调用者
名称描述
lockdep_free_key_range