Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:void insn_init(struct insn *insn, const void *kaddr, int buf_len, int x86_64)

Type:void

Parameter:

TypeParameterName
struct insn *insn
const void *kaddr
intbuf_len
intx86_64
48  If buf_len > MAX_INSN_SIZE Then buf_len = MAX_INSN_SIZE
51  memset(insn, 0, size of insn )
52  kernel address of insn to analyze = kaddr
53  kernel address of last insn in buffer = kaddr + buf_len
54  next_byte = kaddr
55  x86_64 = If x86_64 Then 1 Else 0
56  opnd_bytes = 4
57  If x86_64 Then addr_bytes = 8
59  Else addr_bytes = 4
Caller
NameDescribe
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