函数逻辑报告 |
Source Code:arch\x86\lib\insn-eval.c |
Create Date:2022-07-27 08:24:30 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:static short get_segment_selector(struct pt_regs *regs, int seg_reg_idx)
返回类型:short
参数:
类型 | 参数 | 名称 |
---|---|---|
struct pt_regs * | regs | |
int | seg_reg_idx |
327 | 返回:0 |
328 | 当:seg_reg_idx恒等于INAT_SEG_REG_CS |
329 | 返回:cs按位与0xffff |
330 | 当:seg_reg_idx恒等于INAT_SEG_REG_SS |
331 | 返回:ss按位与0xffff |
332 | 当:seg_reg_idx恒等于INAT_SEG_REG_DS |
334 | 返回:sel |
335 | 当:seg_reg_idx恒等于INAT_SEG_REG_ES |
337 | 返回:sel |
338 | 当:seg_reg_idx恒等于INAT_SEG_REG_FS |
340 | 返回:sel |
341 | 当:seg_reg_idx恒等于INAT_SEG_REG_GS |
343 | 返回:sel |
344 | 默认 |
345 | 返回:负EINVAL |
名称 | 描述 |
---|---|
insn_get_seg_base | sn_get_seg_base() - Obtain base address of segment descriptor |
get_seg_limit | 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 |
insn_get_code_seg_params | 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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |