函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static bool get_desc(struct desc_struct *out, unsigned short sel)

返回类型:bool

参数:

类型参数名称
struct desc_struct *out
unsigned shortsel
575  struct desc_ptr gdt_desc = {0, 0}
598  native_store_gdt( & gdt_desc)
607  desc_base等于sel按位与Bottom two bits of selector give the ring* privilege level按位或Bit 2 is Table Indicator (TI): selects between LDT or GDT 的值的反
609  如果desc_base大于size则返回:false
612  out等于*addressdesc_base的和
613  返回:true
调用者
名称描述
insn_get_seg_basesn_get_seg_base() - Obtain base address of segment descriptor
get_seg_limitget_seg_limit() - Obtain the limit of a segment descriptor*@regs: Register values as seen when entering kernel mode*@seg_reg_idx: Index of the segment register pointing to seg descriptor* Obtain the limit of the segment as indicated by the segment
insn_get_code_seg_paramssn_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