函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sn_init() - initialize struct insn*@insn: &struct insn to be initialized*@kaddr: address (in kernel memory) of instruction (or copy thereof)*@x86_64: !0 for 64-bit kernel or 64-bit app

函数原型:void insn_init(struct insn *insn, const void *kaddr, int buf_len, int x86_64)

返回类型:void

参数:

类型参数名称
struct insn *insn
const void *kaddr
intbuf_len
intx86_64
48  如果buf_len大于MAX_INSN_SIZEbuf_len等于MAX_INSN_SIZE
51  memset(insn, 0, insn的长度)
52  kernel address of insn to analyze 等于kaddr
53  kernel address of last insn in buffer 等于kaddrbuf_len
54  next_byte等于kaddr
55  x86_64等于如果x86_64则1否则0
56  opnd_bytes等于4
57  如果x86_64addr_bytes等于8
59  否则addr_bytes等于4
调用者
名称描述
fixup_umip_exceptionxup_umip_exception() - Fixup a general protection fault caused by UMIP*@regs: Registers as saved when entering the #GP handler* The instructions SGDT, SIDT, STR, SMSW and SLDT cause a general protection* fault if executed with CPL > 0 (i
uprobe_init_insn