函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\panic.c Create Date:2022-07-27 09:59:08
Last Modify:2022-05-22 10:57:01 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:A variant of panic() called from NMI context. We return if we've already* panicked on this CPU. If another CPU already panicked, loop in* nmi_panic_self_stop() which can provide architecture dependent code such* as saving register state for crash dump.

函数原型:void nmi_panic(struct pt_regs *regs, const char *msg)

返回类型:void

参数:

类型参数名称
struct pt_regs *regs
const char *msg
128  cpu等于These macros fold the SMP functionality into a single CPU system()
129  old_cpu等于atomic_cmpxchg( & panic_cpu, PANIC_CPU_INVALID, cpu)
131  如果old_cpu恒等于PANIC_CPU_INVALIDpanic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
133  否则如果old_cpu不等于cpuStop ourselves in NMI context if another CPU has already panicked. Arch code* may override this to prepare for crash dumping, e.g. save regs info.
调用者
名称描述
io_check_error
unknown_nmi_error
watchdog_overflow_callbackCallback function for perf event subsystem
pci_serr_error