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

Name:Decode ptr16:16/32(Ap)

Proto:static int __get_immptr(struct insn *insn)

Type:int

Parameter:

TypeParameterName
struct insn *insn
517  Case opnd_bytes == 2
518  value = get_next(short, insn)
519  nbytes = 2
520  Break
521  Case opnd_bytes == 4
522  value = get_next(int, insn)
523  nbytes = 4
524  Break
525  Case opnd_bytes == 8
527  Return 0
528  Default
529  Go to err_out
531  value = get_next(unsignedshort, insn)
532  nbytes = 2
533  !0 if we've run insn_get_xxx() for this field = !0 if we've run insn_get_xxx() for this field = 1
535  Return 1
536  err_out :
537  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