Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:module_bug_finalize

Proto:void module_bug_finalize(const Elf32_Ehdr *hdr, const Elf32_Shdr *sechdrs, struct module *mod)

Type:void

Parameter:

TypeParameterName
const Elf32_Ehdr *hdr
const Elf32_Shdr *sechdrs
struct module *mod
93  lockdep_assert_held( & module_mutex)
95  bug_table = NULL
96  num_bugs = 0
99  secstrings = hdr + sh_offset
100  When i < e_shnum cycle
101  If strcmp(secstrings + sh_name, "__bug_table") Then Continue
103  bug_table = sh_addr
104  num_bugs = sh_size / sizeof(structbug_entry)
105  Break
115  list_add_rcu - add a new entry to rcu-protected list*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head