函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:spin_dump

函数原型:static void spin_dump(raw_spinlock_t *lock, const char *msg)

返回类型:void

参数:

类型参数名称
raw_spinlock_t *lock
const char *msg
54  owner等于READ_ONCE(owner)
56  如果owner恒等于SPINLOCK_OWNER_INITowner = NULL
58  printk(system is unusable "BUG: spinlock %s on CPU#%d, %s/%d\n", msg, These macros fold the SMP functionality into a single CPU system(), comm, task_pid_nr(当前进程))
61  printk(system is unusable " lock: %pS, .magic: %08x, .owner: %s/%d, .owner_cpu: %d\n", lock, READ_ONCE(magic), owner ? 是否使用FPU : "<none>", owner ? task_pid_nr(owner) : - 1, READ_ONCE(owner_cpu))
67  dump_stack()
调用者
名称描述
spin_bug