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:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sn_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

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

Type:void

Parameter:

TypeParameterName
struct insn *insn
struct pt_regs *regs
1354  If Not insn || Not regs Then Return (void __user * ) - 1L
1358  Case addr_bytes == 2
1359  Return get_addr_ref_16() - Obtain the 16-bit address referred by instruction*@insn: Instruction containing ModRM byte and displacement*@regs: Register values as seen when entering kernel mode* This function is to be used with 16-bit address encodings
1360  Case addr_bytes == 4
1361  Return get_addr_ref_32() - Obtain a 32-bit linear address*@insn: Instruction with ModRM, SIB bytes and displacement*@regs: Register values as seen when entering kernel mode* This function is to be used with 32-bit address encodings to obtain the* linear memory
1362  Case addr_bytes == 8
1363  Return get_addr_ref_64(insn, regs)
1364  Default
1365  Return (void __user * ) - 1L