函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:print_lock_nested_lock_not_held

函数原型:static void print_lock_nested_lock_not_held(struct task_struct *curr, struct held_lock *hlock, unsigned long ip)

返回类型:void

参数:

类型参数名称
struct task_struct *curr
struct held_lock *hlock
unsigned longip
3774  如果非Generic 'turn off all lock debugging' function:则返回
3776  如果The locking-testsuite uses to get a* 'silent failure': nothing is printed to the console when* a locking bug is detected.则返回
3779  打印警告信息("\n")
3780  打印警告信息("==================================\n")
3781  打印警告信息("WARNING: Nested lock was not taken\n")
3782  print_kernel_ident()
3783  打印警告信息("----------------------------------\n")
3785  打印警告信息("%s/%d is trying to lock:\n", 是否使用FPU, task_pid_nr(curr))
3786  print_lock(hlock)
3788  打印警告信息("\nbut this task is not holding:\n")
3789  打印警告信息("%s\n", name)
3791  打印警告信息("\nstack backtrace:\n")
3792  dump_stack()
3794  打印警告信息("\nother info that might help us debug this:\n")
3795  lockdep_print_held_locks(curr)
3797  打印警告信息("\nstack backtrace:\n")
3798  dump_stack()
调用者
名称描述
__lock_acquireThis gets called for every mutex_lock*()/spin_lock*() operation