Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:paravirt_patch_call

Proto:static unsigned paravirt_patch_call(void *insn_buff, const void *target, unsigned long addr, unsigned len)

Type:unsigned

Parameter:

TypeParameterName
void *insn_buff
const void *target
unsigned longaddr
unsignedlen
65  call_len = 5
66  b = insn_buff
67  delta = target - addr + call_len
69  If len < call_len Then
70  pr_warn("paravirt: Failed to patch indirect CALL at %ps\n", (void * )addr)
72  BUG_ON(1)
75  opcode = 0xe8
76  delta = delta
77  BUILD_BUG_ON - break compile if a condition is true( size of b != call_len)
79  Return call_len
Caller
NameDescribe
paravirt_patch_default