函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lockdep_print_held_locks

函数原型:static void lockdep_print_held_locks(struct task_struct *p)

返回类型:void

参数:

类型参数名称
struct task_struct *p
697  depth等于READ_ONCE(lockdep_depth)
699  如果非depthprintk("no locks held by %s/%d.\n", 是否使用FPU, task_pid_nr(p))
701  否则printk("%d lock%s held by %s/%d:\n", depth, depth > 1 ? "s" : "", 是否使用FPU, task_pid_nr(p))
708  如果任务状态恒等于就绪态p不等于当前进程则返回
710 i小于depth循环
711  printk(" #%d: ", i)
712  print_lock(held_locks + i)
调用者
名称描述
print_lock_nested_lock_not_held
__lock_acquireThis gets called for every mutex_lock*()/spin_lock*() operation
print_unlock_imbalance_bug
print_freed_lock_bug
print_held_locks_bug
debug_show_all_locks
debug_show_held_locksCareful: only use this function if you are sure that* the task cannot run in parallel!
lockdep_sys_exit
lockdep_rcu_suspicious