函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Decode moffset16/32/64. Return 0 if failed

函数原型:static int __get_moffset(struct insn *insn)

返回类型:int

参数:

类型参数名称
struct insn *insn
437  :addr_bytes恒等于2
438  value等于get_next(short, insn)
439  nbytes等于2
440  退出
441  :addr_bytes恒等于4
442  value等于get_next(int, insn)
443  nbytes等于4
444  退出
445  :addr_bytes恒等于8
446  value等于get_next(int, insn)
447  nbytes等于4
448  value等于get_next(int, insn)
449  nbytes等于4
450  退出
451  默认
452  转到:err_out
454  !0 if we've run insn_get_xxx() for this field 等于 !0 if we've run insn_get_xxx() for this field 等于1
456  返回:1
458  err_out :
459  返回:0
调用者
名称描述
insn_get_immediatesn_get_immediate() - Get the immediates of instruction*@insn: &struct insn containing instruction* If necessary, first collects the instruction up to and including the* displacement bytes.* Basically, most of immediates are sign-expanded