Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:crash_save_cpu

Proto:void crash_save_cpu(struct pt_regs *regs, int cpu)

Type:void

Parameter:

TypeParameterName
struct pt_regs *regs
intcpu
1060  If cpu < 0 || cpu >= Setup number of possible processor ids Then Return
1070  buf = per_cpu_ptr(Per cpu memory for storing cpu states in case of system crash. , cpu)
1071  If Not buf Then Return
1073  memset( & prstatus, 0, size of prstatus )
1074  pr_pid = pid
1075  elf_core_copy_kernel_regs( & GP registers , regs)
1076  buf = append_elf_note(buf, KEXEC_CORE_NOTE_NAME, Notes used in ET_CORE. Architectures export some of the arch register sets* using the corresponding note types via the PTRACE_GETREGSET and* PTRACE_SETREGSET requests., & prstatus, size of prstatus )
1078  final_note(buf)