函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Find a module section: 0 means not found.

函数原型:static unsigned int find_sec(const struct load_info *info, const char *name)

返回类型:unsigned int

参数:

类型参数名称
const struct load_info *info
const char *name
348 i小于e_shnum循环
349  Elf_Shdrshdr等于sechdrs[i]
351  如果sh_flags按位与SHF_ALLOC字符串比较恒等于0则返回:i
355  返回:0
调用者
名称描述
section_addrFind a module section, or NULL.
section_objsFind a module section, or NULL. Fill in number of "objects" in section.
setup_load_infoSet up our basic convenience variables (pointers to section headers,* search for module section index etc), and do some basic section* verification.* Set info->mod to the temporary copy of the module in info->hdr. The final one
layout_and_allocate