Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:verify_namespace_is_imported

Proto:static int verify_namespace_is_imported(const struct load_info *info, const struct kernel_symbol *sym, struct module *mod)

Type:int

Parameter:

TypeParameterName
const struct load_info *info
const struct kernel_symbol *sym
struct module *mod
1407  namespace = kernel_symbol_namespace(sym)
1408  If namespace && namespace[0] Then
1409  imported_namespace = get_modinfo(info, "import_ns")
1411  If strcmp(namespace, imported_namespace) == 0 Then Return 0
1419  pr_err("%s: module uses symbol (%s) from namespace %s, but does not import it.\n", Unique handle for this module , kernel_symbol_name(sym), namespace)
1424  Return -EINVAL
1427  Return 0
Caller
NameDescribe
resolve_symbolResolve a symbol for this module. I.e. if we find one, record usage.