函数逻辑报告 | 
Source Code:kernel\module.c | 
Create Date:2022-07-27 11:58:52 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:Change all symbols so that st_value encodes the pointer directly.
函数原型:static int simplify_symbols(struct module *mod, const struct load_info *info)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct module * | mod | |
| const struct load_info * | info | 
| 2302 | ret等于0 | 
| 2309 | 当:st_shndx恒等于SHN_COMMON | 
| 2317 | 打印警告信息("%s: please compile with -fno-common\n", Unique handle for this module ) | 
| 2320 | 退出 | 
| 2328 | 当:st_shndx恒等于SHN_LIVEPATCH | 
| 2330 | 退出 | 
| 2332 | 当:st_shndx恒等于special section indexes | 
| 2333 | ksym等于resolve_symbol_wait(mod, info, name) | 
| 2336 | st_value等于kernel_symbol_value(ksym) | 
| 2337 | 退出 | 
| 2341 | 如果非ksym且ELF_ST_BIND(st_info)恒等于STB_WEAK则退出 | 
| 2345 | 打印警告信息("%s: Unknown symbol %s (err %d)\n", Unique handle for this module , name, ret) | 
| 2347 | 退出 | 
| 2349 | 默认 | 
| 2360 | 返回: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 插件可实现:逻辑报告 代码生成和批量转换代码  |