Function report |
Source Code:arch\x86\lib\insn-eval.c |
Create Date:2022-07-28 07:25:42 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:get_addr_ref_16() - Obtain the 16-bit address referred by instruction*@insn: Instruction containing ModRM byte and displacement*@regs: Register values as seen when entering kernel mode* This function is to be used with 16-bit address encodings
Proto:static void __user *get_addr_ref_16(struct insn *insn, struct pt_regs *regs)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct insn * | insn | |
| struct pt_regs * | regs |
| 1143 | linear_addr = -1L |
| 1151 | If addr_bytes != 2 Then Go to out |
| 1154 | If X86_MODRM_MOD(value) == 3 Then |
| 1160 | Else |
| 1179 | linear_addr = (eff_addr & 0xffff) + seg_base |
| 1182 | If v8086_mode(regs) Then linear_addr &= 0xfffff |
| 1185 | out : |
| 1186 | Return linear_addr |
| Name | Describe |
|---|---|
| insn_get_addr_ref | sn_get_addr_ref() - Obtain the linear address referred by instruction*@insn: Instruction structure containing ModRM byte and displacement*@regs: Structure with register values as seen when entering kernel mode* Obtain the linear address referred by the |
| 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 |