函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Apply per-object alternatives. Based on x86 module_finalize()

函数原型:void arch_klp_init_object_loaded(struct klp_patch *patch, struct klp_object *obj)

返回类型:void

参数:

类型参数名称
struct klp_patch *patch
struct klp_object *obj
17  Elf_Shdr * s, * alt = NULL, * para = NULL
23  info等于klp_info
24  objname等于如果 external external 否则"vmlinux"
27  BUILD_BUG_ON - break compile if a condition is true(MODULE_NAME_LEN < 56 || KSYM_NAME_LEN != 128)
29 s小于sechdrse_shnum循环
31  cnt等于sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments
34  如果cnt不等于2则继续下一循环
36  如果字符串比较则继续下一循环
38  如果非字符串比较alt等于s
40  如果非字符串比较para等于s
44  如果alt
45  aseg等于sh_addr
46  Replace instructions with better alternatives for this CPU type. This runs* before SMP is initialized to avoid SMP problems with self modifying code.* This implies that asymmetric systems where APs have less capabilities than
49  如果para
50  pseg等于sh_addr
51  apply_paravirt(pseg, pseg + sh_size)