函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\lib\insn-eval.c Create Date:2022-07-27 08:24:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static int get_seg_reg_override_idx(struct insn *insn)

返回类型:int

参数:

类型参数名称
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 i小于nbytes循环
80  attr等于Attribute search APIs
83  idx等于INAT_SEG_REG_CS
84  num_overrides自加
85  退出
87  idx等于INAT_SEG_REG_SS
88  num_overrides自加
89  退出
91  idx等于INAT_SEG_REG_DS
92  num_overrides自加
93  退出
95  idx等于INAT_SEG_REG_ES
96  num_overrides自加
97  退出
99  idx等于INAT_SEG_REG_FS
100  num_overrides自加
101  退出
103  idx等于INAT_SEG_REG_GS
104  num_overrides自加
105  退出
111  如果num_overrides大于1则返回:负EINVAL
114  返回:idx
调用者
名称描述
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