函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\module.c Create Date:2022-07-27 11:58:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:verify_namespace_is_imported

函数原型:static int verify_namespace_is_imported(const struct load_info *info, const struct kernel_symbol *sym, struct module *mod)

返回类型:int

参数:

类型参数名称
const struct load_info *info
const struct kernel_symbol *sym
struct module *mod
1407  namespace等于kernel_symbol_namespace(sym)
1408  如果namespacenamespace[0]则
1409  imported_namespace等于get_modinfo(info, "import_ns")
1411  如果字符串比较恒等于0则返回:0
1419  打印错误信息("%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  返回:负EINVAL
1427  返回:0
调用者
名称描述
resolve_symbolResolve a symbol for this module. I.e. if we find one, record usage.