Function report |
Source Code:kernel\module.c |
Create Date:2022-07-28 10:58:51 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:check_modinfo
Proto:static int check_modinfo(struct module *mod, struct load_info *info, int flags)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct module * | mod | |
struct load_info * | info | |
int | flags |
3110 | modmagic = get_modinfo(info, "vermagic") |
3113 | If flags & MODULE_INIT_IGNORE_VERMAGIC Then modmagic = NULL |
3117 | If Not modmagic Then |
3118 | err = try_to_force_load(mod, "bad vermagic") |
3121 | Else if Not same_magic(modmagic, vermagic, vers) Then |
3124 | Return -ENOEXEC |
3127 | If Not get_modinfo(info, "intree") Then |
3128 | If Not test_taint(TAINT_OOT_MODULE) Then pr_warn("%s: loading out-of-tree module taints kernel.\n", Unique handle for this module ) |
3134 | check_modinfo_retpoline(mod, info) |
3136 | If get_modinfo(info, "staging") Then |
3138 | pr_warn("%s: module is from the staging directory, the quality is unknown, you have been warned.\n", Unique handle for this module ) |
3142 | err = check_modinfo_livepatch(mod, info) |
3147 | set_license(mod, get_modinfo(info, "license")) |
3149 | Return 0 |
Name | Describe |
---|---|
layout_and_allocate |
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 |