Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\lib\insn.c Create Date:2022-07-28 07:25:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Decode moffset16/32/64. Return 0 if failed

Proto:static int __get_moffset(struct insn *insn)

Type:int

Parameter:

TypeParameterName
struct insn *insn
437  Case addr_bytes == 2
438  value = get_next(short, insn)
439  nbytes = 2
440  Break
441  Case addr_bytes == 4
442  value = get_next(int, insn)
443  nbytes = 4
444  Break
445  Case addr_bytes == 8
446  value = get_next(int, insn)
447  nbytes = 4
448  value = get_next(int, insn)
449  nbytes = 4
450  Break
451  Default
452  Go to 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  Return 1
458  err_out :
459  Return 0
Caller
NameDescribe
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