Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\mce\core.c Create Date:2022-07-28 08:00:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Support code for software error injection

Proto:static int msr_to_offset(unsigned int msr)

Type:int

Parameter:

TypeParameterName
unsigned intmsr
376  bank = Operations for contexts that are safe from preemption/interrupts. These* operations verify that preemption is disabled.(bank)
378  If msr == rip_msr Then Return offsetof(structmce, ip)
380  If msr == status(bank) Then Return offsetof(structmce, status)
382  If msr == addr(bank) Then Return offsetof(structmce, addr)
384  If msr == misc(bank) Then Return offsetof(structmce, misc)
386  If msr == MSR_IA32_MCG_STATUS Then Return offsetof(structmce, mcgstatus)
388  Return -1
Caller
NameDescribe
mce_rdmsrlMSR access wrappers used for error injection
mce_wrmsrl