Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\lib\insn-eval.c Create Date:2022-07-28 07:25:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:get_addr_ref_64

Proto:static void __user *get_addr_ref_64(struct insn *insn, struct pt_regs *regs)

Type:void

Parameter:

TypeParameterName
struct insn *insn
struct pt_regs *regs
1301  linear_addr = -1L
1305  If addr_bytes != 8 Then Go to out
1308  If X86_MODRM_MOD(value) == 3 Then
1309  ret = get_eff_addr_reg() - Obtain effective address from register operand*@insn: Instruction
1310  If ret Then Go to out
1313  Else
1314  If nbytes Then
1316  If ret Then Go to out
1318  Else
1320  If ret Then Go to out
1326  ret = get_seg_base_limit() - obtain base address and limit of a segment*@insn: Instruction
1327  If ret Then Go to out
1330  linear_addr = eff_addr + seg_base
1332  out :
1333  Return linear_addr
Caller
NameDescribe
insn_get_addr_refsn_get_addr_ref() - Obtain the linear address referred by instruction*@insn: Instruction structure containing ModRM byte and displacement*@regs: Structure with register values as seen when entering kernel mode* Obtain the linear address referred by the