Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Find an exported symbol and return it, along with, (optional) crc and* (optional) module which owns it. Needs preempt disabled or module_mutex.

Proto:const struct kernel_symbol *find_symbol(const char *name, struct module **owner, const s32 **crc, bool gplok, bool warn)

Type:struct kernel_symbol

Parameter:

TypeParameterName
const char *name
struct module **owner
const s32 **crc
boolgplok
boolwarn
593  Input = name
594  gplok = gplok
595  warn = warn
597  If Returns true as soon as fn returns true, otherwise false. Then
598  If owner Then owner = Output
600  If crc Then crc = crc
602  Return sym
605  pr_debug("Failed to find symbol %s\n", name)
606  Return NULL
Caller
NameDescribe
resolve_symbolResolve a symbol for this module. I.e. if we find one, record usage.
__symbol_get
verify_exported_symbolsEnsure that an exported symbol [global namespace] does not already exist* in the kernel or in some other module's exported symbol table.* You must hold the module_mutex.