函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static int resolve_default_seg(struct insn *insn, struct pt_regs *regs, int off)

返回类型:int

参数:

类型参数名称
struct insn *insn
struct pt_regs *regs
intoff
158  如果user_64bit_mode(regs)则返回:Identifiers for segment registers
175  :off恒等于offsetof(structpt_regs, ax)
176  :off恒等于offsetof(structpt_regs, cx)
177  :off恒等于offsetof(structpt_regs, dx)
179  如果addr_bytes恒等于2则返回:负EINVAL
184  :off恒等于负EDOM
185  :off恒等于offsetof(structpt_regs, bx)
186  :off恒等于offsetof(structpt_regs, si)
187  返回:INAT_SEG_REG_DS
189  :off恒等于offsetof(structpt_regs, di)
190  如果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则返回:INAT_SEG_REG_ES
192  返回:INAT_SEG_REG_DS
194  :off恒等于offsetof(structpt_regs, bp)
195  :off恒等于offsetof(structpt_regs, sp)
196  返回:INAT_SEG_REG_SS
198  :off恒等于offsetof(structpt_regs, ip)
199  返回:INAT_SEG_REG_CS
201  默认
202  返回:负EINVAL
调用者
名称描述
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