函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static void __lockdep_free_key_range(struct pending_free *pf, void *start, unsigned long size)

返回类型:void

参数:

类型参数名称
struct pending_free *pf
void *start
unsigned longsize
4993 i小于CLASSHASH_SIZE循环
4994  head等于class哈希表i
4996  如果非within(key, start, size)且非within(name, start, size)则继续下一循环
4999  Remove all references to a lock class. The caller must hold the graph lock.
调用者
名称描述
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.