函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\mce\core.c Create Date:2022-07-27 09:01:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Support code for software error injection

函数原型:static int msr_to_offset(unsigned int msr)

返回类型:int

参数:

类型参数名称
unsigned intmsr
376  bank等于Operations for contexts that are safe from preemption/interrupts. These* operations verify that preemption is disabled.(bank)
378  如果msr恒等于rip_msr则返回:offsetof(structmce, ip)
380  如果msr恒等于status(bank)则返回:offsetof(structmce, status)
382  如果msr恒等于addr(bank)则返回:offsetof(structmce, addr)
384  如果msr恒等于misc(bank)则返回:offsetof(structmce, misc)
386  如果msr恒等于MSR_IA32_MCG_STATUS则返回:offsetof(structmce, mcgstatus)
388  返回:负1
调用者
名称描述
mce_rdmsrlMSR access wrappers used for error injection
mce_wrmsrl