Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\panic.c Create Date:2022-07-28 08:59:35
Last Modify:2022-05-22 10:57:01 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:void nmi_panic(struct pt_regs *regs, const char *msg)

Type:void

Parameter:

TypeParameterName
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  If old_cpu == PANIC_CPU_INVALID Then panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
133  Else if old_cpu != cpu Then Stop 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.
Caller
NameDescribe
io_check_error
unknown_nmi_error
watchdog_overflow_callbackCallback function for perf event subsystem