Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\module.c Create Date:2022-07-28 10:57:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Find a module section: 0 means not found.

Proto:static unsigned int find_sec(const struct load_info *info, const char *name)

Type:unsigned int

Parameter:

TypeParameterName
const struct load_info *info
const char *name
348  When i < e_shnum cycle
349  Elf_Shdr * shdr = sechdrs[i]
351  If sh_flags & SHF_ALLOC && strcmp(secstrings + sh_name, name) == 0 Then Return i
355  Return 0
Caller
NameDescribe
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