Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kexec_core.c Create Date:2022-07-28 11:03:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:crash_kexec

Proto:void crash_kexec(struct pt_regs *regs)

Type:void

Parameter:

TypeParameterName
struct pt_regs *regs
971  this_cpu = These macros fold the SMP functionality into a single CPU system()
972  old_cpu = atomic_cmpxchg( & panic_cpu, PANIC_CPU_INVALID, this_cpu)
973  If old_cpu == PANIC_CPU_INVALID Then
975  printk_safe_flush_on_panic - flush all per-cpu nmi buffers when the system* goes down.* Similar to printk_safe_flush() but it can be called even in NMI context when* the system goes down. It does the best effort to get NMI messages into
976  No panic_cpu check version of crash_kexec(). This function is called* only when panic_cpu holds the current CPU number; this is the only CPU* which processes crash_kexec routines.
982  atomic_set( & panic_cpu, PANIC_CPU_INVALID)