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:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Decode imm v64(Iv/Ov), Return 0 if failed

Proto:static int __get_immv(struct insn *insn)

Type:int

Parameter:

TypeParameterName
struct insn *insn
489  Case opnd_bytes == 2
490  value = get_next(short, insn)
491  nbytes = 2
492  Break
493  Case opnd_bytes == 4
494  value = get_next(int, insn)
495  nbytes = 4
496  Break
497  Case opnd_bytes == 8
498  value = get_next(int, insn)
499  nbytes = 4
500  value = get_next(int, insn)
501  nbytes = 4
502  Break
503  Default
504  Go to err_out
506  !0 if we've run insn_get_xxx() for this field = !0 if we've run insn_get_xxx() for this field = 1
508  Return 1
509  err_out :
510  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