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

Name:get_seg_reg_override_idx() - obtain segment register override index*@insn: Valid instruction with segment override prefixes* Inspect the instruction prefixes in @insn and find segment overrides, if any

Proto:static int get_seg_reg_override_idx(struct insn *insn)

Type:int

Parameter:

TypeParameterName
struct insn *insn
71  idx = INAT_SEG_REG_DEFAULT
72  num_overrides = 0
74  sn_get_prefixes - scan x86 instruction prefix bytes*@insn: &struct insn containing instruction* Populates the @insn->prefixes bitmap, and updates @insn->next_byte* to point to the (first) opcode. No effect if @insn->prefixes.got* is already set.
77  When i < nbytes cycle
80  attr = Attribute search APIs
84  num_overrides++
85  Break
88  num_overrides++
89  Break
92  num_overrides++
93  Break
96  num_overrides++
97  Break
100  num_overrides++
101  Break
104  num_overrides++
105  Break
111  If num_overrides > 1 Then Return -EINVAL
114  Return idx
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