函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\kexec.h Create Date:2022-07-27 07:12:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:This function is responsible for capturing register states if coming* via panic otherwise just fix up the ss and sp if coming via kernel* mode exception.

函数原型:static inline void crash_setup_regs(struct pt_regs *newregs, struct pt_regs *oldregs)

返回类型:void

参数:

类型参数名称
struct pt_regs *newregs
struct pt_regs *oldregs
77  如果oldregs
78  内存复制(newregs, oldregs, newregs的长度)
79  否则
81  asm volatile
82  asm volatile
83  asm volatile
84  asm volatile
85  asm volatile
86  asm volatile
87  asm volatile
88  asm volatile
89  asm volatile
90  asm volatile
91  asm volatile
92  asm volatile
93  asm volatile
115  Return frame for iretq 等于_THIS_IP_
调用者
名称描述
__crash_kexecNo 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.