函数逻辑报告 |
Source Code:kernel\module.c |
Create Date:2022-07-27 11:59:45 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:This is where the real work happens.* Keep it uninlined to provide a reliable breakpoint target, e.g. for the gdb* helper command 'lx-symbols'.
函数原型:static noinline int do_init_module(struct module *mod)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct module * | mod |
3563 | ret等于0 |
3567 | 如果非freeinit则 |
3581 | 如果(init != NULL)则ret等于Defined in init/main.c |
3583 | 如果ret小于0则 |
3584 | 转到:fail_free_freeinit |
3586 | 如果ret大于0则 |
3587 | 打印警告信息("%s: '%s'->init suspiciously returned %d, it should follow 0/-E convention\n%s: loading module anyway...\n", __func__, Unique handle for this module , ret, __func__) |
3591 | dump_stack() |
3595 | state等于 Normal state. |
3623 | module_put(mod) |
3629 | module_enable_ro(mod, true) |
3630 | mod_tree_remove_init(mod) |
3631 | module_arch_freeing_init(mod) |
3632 | The actual code + data. = NULL |
3633 | Total size. 等于0 |
3635 | Size of RO after init section 等于0 |
3636 | The size of the executable code. 等于0 |
3650 | 如果添加列表项则schedule_work - put work task in global workqueue*@work: job to be done* Returns %false if @work was already on the kernel-global workqueue and* %true otherwise |
3656 | 返回:0 |
3658 | fail_free_freeinit : |
3660 | fail : |
3662 | state等于 Going away. |
3664 | module_put(mod) |
3665 | blocking_notifier_call_chain( & module_notify_list, Going away. , mod) |
3667 | klp_module_going(mod) |
3668 | ftrace_release_mod(mod) |
3671 | 返回:ret |
名称 | 描述 |
---|---|
load_module | Allocate and load the module: note that size of section 0 is alwayszero, and we rely on this for optional sections. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |