函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:module_finalize

函数原型:int module_finalize(const Elf32_Ehdr *hdr, const Elf32_Shdr *sechdrs, struct module *me)

返回类型:int

参数:

类型参数名称
const Elf32_Ehdr *hdr
const Elf32_Shdr *sechdrs
struct module *me
224  const Elf_Shdr * s, * text = NULL, * alt = NULL, * locks = NULL, * para = NULL, * orc = NULL, * orc_ip = NULL
226  secstrings等于hdrsh_offset
228 s小于sechdrse_shnum循环
229  如果非字符串比较text等于s
231  如果非字符串比较alt等于s
233  如果非字符串比较locks等于s
235  如果非字符串比较para等于s
237  如果非字符串比较orc等于s
239  如果非字符串比较orc_ip等于s
243  如果alt
245  aseg等于sh_addr
246  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
248  如果lockstext
249  lseg等于sh_addr
250  tseg等于sh_addr
251  alternatives_smp_module_add(me, Unique handle for this module , lseg, lseg + sh_size, tseg, tseg + sh_size)
256  如果para
257  pseg等于sh_addr
258  apply_paravirt(pseg, pseg + sh_size)
262  jump_label_apply_nops(me)
264  如果orcorc_ipunwind_module_init(me, (void * )sh_addr, sh_size, (void * )sh_addr, sh_size)
268  返回:0