函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Decode ptr16:16/32(Ap)

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

返回类型:int

参数:

类型参数名称
struct insn *insn
517  :opnd_bytes恒等于2
518  value等于get_next(short, insn)
519  nbytes等于2
520  退出
521  :opnd_bytes恒等于4
522  value等于get_next(int, insn)
523  nbytes等于4
524  退出
525  :opnd_bytes恒等于8
527  返回:0
528  默认
529  转到: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  返回:1
536  err_out :
537  返回: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