Function report |
Source Code:kernel\module.c |
Create Date:2022-07-28 10:58:07 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Resolve a symbol for this module. I.e. if we find one, record usage.
Proto:static const struct kernel_symbol *resolve_symbol(struct module *mod, const struct load_info *info, const char *name, char ownername[])
Type:struct kernel_symbol
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct module * | mod | |
| const struct load_info * | info | |
| const char * | name | |
| char | ownername |
| 1447 | sched_annotate_sleep() |
| 1449 | sym = Find an exported symbol and return it, along with, (optional) crc and* (optional) module which owns it. Needs preempt disabled or module_mutex. |
| 1454 | If Not check_version(info, name, mod, crc) Then |
| 1459 | err = verify_namespace_is_imported(info, sym, mod) |
| 1460 | If err Then |
| 1465 | err = ref_module(mod, owner) |
| 1466 | If err Then |
| 1471 | getname : |
| 1473 | strncpy(ownername, This is a #define so the string doesn't get put in every .o file (owner), MODULE_NAME_LEN) |
| 1474 | unlock : |
| 1476 | Return sym |
| Name | Describe |
|---|---|
| resolve_symbol_wait |
| 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 |