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

Name:solve_default_seg() - resolve default segment register index for an operand*@insn: Instruction with opcode and address size

Proto:static int resolve_default_seg(struct insn *insn, struct pt_regs *regs, int off)

Type:int

Parameter:

TypeParameterName
struct insn *insn
struct pt_regs *regs
intoff
158  If user_64bit_mode(regs) Then Return Identifiers for segment registers
175  Case off == offsetof(structpt_regs, ax)
176  Case off == offsetof(structpt_regs, cx)
177  Case off == offsetof(structpt_regs, dx)
179  If addr_bytes == 2 Then Return -EINVAL
184  Case off == -EDOM
185  Case off == offsetof(structpt_regs, bx)
186  Case off == offsetof(structpt_regs, si)
187  Return INAT_SEG_REG_DS
189  Case off == offsetof(structpt_regs, di)
190  If s_string_insn() - Determine if instruction is a string instruction*@insn: Instruction containing the opcode to inspect* Returns:* true if the instruction, determined by the opcode, is any of the Then Return INAT_SEG_REG_ES
192  Return INAT_SEG_REG_DS
194  Case off == offsetof(structpt_regs, bp)
195  Case off == offsetof(structpt_regs, sp)
196  Return INAT_SEG_REG_SS
198  Case off == offsetof(structpt_regs, ip)
199  Return INAT_SEG_REG_CS
201  Default
202  Return -EINVAL
Caller
NameDescribe
resolve_seg_regsolve_seg_reg() - obtain segment register index*@insn: Instruction with operands*@regs: Register values as seen when entering kernel mode*@regoff: Operand offset, in pt_regs, used to deterimine segment register* Determine the segment register associated