函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sn_get_code_seg_params() - Obtain code segment parameters*@regs: Structure with register values as seen when entering kernel mode* Obtain address and operand sizes of the code segment. It is obtained from the* selector contained in the CS register in regs

函数原型:int insn_get_code_seg_params(struct pt_regs *regs)

返回类型:int

参数:

类型参数名称
struct pt_regs *regs
749  如果v8086_mode(regs)则返回:INSN_CODE_SEG_PARAMS(2, 2)
753  sel等于get_segment_selector() - obtain segment selector*@regs: Register values as seen when entering kernel mode*@seg_reg_idx: Segment register index to use* Obtain the segment selector from any of the CS, SS, DS, ES, FS, GS segment* registers
754  如果sel小于0则返回:sel
757  如果非get_desc() - Obtain contents of a segment descriptor*@out: Segment descriptor contents on success*@sel: Segment selector* Given a segment selector, obtain a pointer to the segment descriptor则返回:负EINVAL
765  如果非type按位与BIT(3)的值则返回:负EINVAL
772  : | == 0
773  返回:INSN_CODE_SEG_PARAMS(2, 2)
777  : | == 1
778  返回:INSN_CODE_SEG_PARAMS(4, 4)
782  : | == 2
783  返回:INSN_CODE_SEG_PARAMS(4, 8)
784  : | == 3
786  默认
787  返回:负EINVAL
调用者
名称描述
fixup_umip_exceptionxup_umip_exception() - Fixup a general protection fault caused by UMIP*@regs: Registers as saved when entering the #GP handler* The instructions SGDT, SIDT, STR, SMSW and SLDT cause a general protection* fault if executed with CPL > 0 (i