Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:get_next_modinfo

Proto:static char *get_next_modinfo(const struct load_info *info, const char *tag, char *prev)

Type:char

Parameter:

TypeParameterName
const struct load_info *info
const char *tag
char *prev
2545  taglen = strlen - Find the length of a string*@s: The string to be sized
2546  Elf_Shdr * infosec = sechdrs[info]
2547  size = sh_size
2553  modinfo = hdr + sh_offset
2555  If prev Then
2556  size -= prev - modinfo
2557  modinfo = Parse tag=value strings from .modinfo section
2560  When p cycle
2561  If strncmp(p, tag, taglen) == 0 && p[taglen] == '=' Then Return p + taglen + 1
2564  Return NULL
Caller
NameDescribe
verify_namespace_is_imported
get_modinfo