函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:初始化lockdep哈希表

函数原型:void __init lockdep_init(void)

返回类型:void

参数:

5204  printk("Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar\n")
5206  printk("... MAX_LOCKDEP_SUBCLASSES: %lu\n", MAX_LOCKDEP_SUBCLASSES)
5207  printk("... MAX_LOCK_DEPTH: %lu\n", MAX_LOCK_DEPTH)
5208  printk("... MAX_LOCKDEP_KEYS: %lu\n", MAX_LOCKDEP_KEYS)
5209  printk("... CLASSHASH_SIZE: %lu\n", CLASSHASH_SIZE)
5210  printk("... MAX_LOCKDEP_ENTRIES: %lu\n", MAX_LOCKDEP_ENTRIES)
5211  printk("... MAX_LOCKDEP_CHAINS: %lu\n", MAX_LOCKDEP_CHAINS)
5212  printk("... CHAINHASH_SIZE: %lu\n", CHAINHASH_SIZE)
5214  printk(" memory used by lock dependency info: %zu kB\n", (lock_classes的长度 + lock_classes_in_use的长度 + class哈希表的长度 + list_entries的长度 + list_entries_in_use的长度 + chain哈希表的长度 + struct delayed_free - data structures used for delayed freeing* A data structure for delayed freeing of data structures that may be* accessed by RCU readers at the time these were freed.的长度) / 1024)
5237  printk(" per task-struct memory footprint: %zu bytes\n", held_locks的长度)
调用者
名称描述
start_kernel启动内核