Function report |
Source Code:kernel\module.c |
Create Date:2022-07-28 10:59:11 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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'.
Proto:static noinline int do_init_module(struct module *mod)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct module * | mod |
3563 | ret = 0 |
3566 | freeinit = Allocation memory |
3567 | If Not freeinit Then |
3581 | If (init != NULL) Then ret = Defined in init/main.c |
3583 | If ret < 0 Then |
3584 | Go to fail_free_freeinit |
3586 | If ret > 0 Then |
3587 | pr_warn("%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 |
3656 | Return 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 | Return ret |
Name | Describe |
---|---|
load_module | Allocate and load the module: note that size of section 0 is alwayszero, and we rely on this for optional sections. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |