Function report |
Source Code:arch\x86\lib\insn-eval.c |
Create Date:2022-07-28 07:25:27 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:static short get_segment_selector(struct pt_regs *regs, int seg_reg_idx)
Type:short
Parameter:
Type | Parameter | Name |
---|---|---|
struct pt_regs * | regs | |
int | seg_reg_idx |
326 | Case seg_reg_idx == Identifiers for segment registers |
327 | Return 0 |
328 | Case seg_reg_idx == INAT_SEG_REG_CS |
329 | Return cs & 0xffff |
330 | Case seg_reg_idx == INAT_SEG_REG_SS |
331 | Return ss & 0xffff |
332 | Case seg_reg_idx == INAT_SEG_REG_DS |
334 | Return sel |
335 | Case seg_reg_idx == INAT_SEG_REG_ES |
337 | Return sel |
338 | Case seg_reg_idx == INAT_SEG_REG_FS |
340 | Return sel |
341 | Case seg_reg_idx == INAT_SEG_REG_GS |
343 | Return sel |
344 | Default |
345 | Return -EINVAL |
Name | Describe |
---|---|
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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |