函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kexec_core.c Create Date:2022-07-27 12:04:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:crash_save_cpu

函数原型:void crash_save_cpu(struct pt_regs *regs, int cpu)

返回类型:void

参数:

类型参数名称
struct pt_regs *regs
intcpu
1060  如果cpu小于0或cpu大于等于CPU数量则返回
1070  buf等于per_cpu_ptr(Per cpu memory for storing cpu states in case of system crash. , cpu)
1071  如果非buf则返回
1073  memset( & prstatus, 0, 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, prstatus的长度)
1078  final_note(buf)
调用者
名称描述
native_machine_crash_shutdown