函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static unsigned long get_seg_limit(struct pt_regs *regs, int seg_reg_idx)

返回类型:unsigned long

参数:

类型参数名称
struct pt_regs *regs
intseg_reg_idx
702  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
703  如果sel小于0则返回:0
706  如果user_64bit_mode(regs)或v8086_mode(regs)则返回:负1L
709  如果非sel则返回:0
712  如果非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则返回:0
721  limit等于get_desc_limit( & desc)
722  如果glimit等于limit左移12位的值加0xfff
725  返回:limit
调用者
名称描述
get_seg_base_limitget_seg_base_limit() - obtain base address and limit of a segment*@insn: Instruction