Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\locking\lockdep.c Create Date:2022-07-28 09:49:50
Last Modify:2020-03-17 14:16:01 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:print_lock_nested_lock_not_held

Proto:static void print_lock_nested_lock_not_held(struct task_struct *curr, struct held_lock *hlock, unsigned long ip)

Type:void

Parameter:

TypeParameterName
struct task_struct *curr
struct held_lock *hlock
unsigned longip
3774  If Not Generic 'turn off all lock debugging' function: Then Return
3776  If The locking-testsuite uses to get a 'silent failure': nothing is printed to the console when a locking bug is detected Then Return
3779  pr_warn("\n")
3780  pr_warn("==================================\n")
3781  pr_warn("WARNING: Nested lock was not taken\n")
3782  print_kernel_ident()
3783  pr_warn("----------------------------------\n")
3785  pr_warn("%s/%d is trying to lock:\n", * executable name, excluding path. * - normally initialized setup_new_exec() * - access it with [gs]et_task_comm() * - lock it with task_lock(), task_pid_nr(curr))
3786  print_lock(hlock)
3788  pr_warn("\nbut this task is not holding:\n")
3789  pr_warn("%s\n", name)
3791  pr_warn("\nstack backtrace:\n")
3792  dump_stack()
3794  pr_warn("\nother info that might help us debug this:\n")
3795  lockdep_print_held_locks(curr)
3797  pr_warn("\nstack backtrace:\n")
3798  dump_stack()
Caller
NameDescribe
__lock_acquireThis gets called for every mutex_lock*()/spin_lock*() operation