函数逻辑报告 |
Source Code:lib\test_memcat_p.c |
Create Date:2022-07-27 07:32:37 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:test_memcat_p_init
函数原型:static int __init test_memcat_p_init(void)
返回类型:int
参数:无
| 32 | 如果非in1则转到:err_free_in0 |
| 36 | in0[i]等于kmalloc(in0的长度, GFP_KERNEL) |
| 37 | 如果非in0[i]则转到:err_free_elements |
| 40 | in1[i]等于kmalloc(in1的长度, GFP_KERNEL) |
| 43 | 转到:err_free_elements |
| 57 | 如果非out则转到:err_free_all_elements |
| 67 | 转到:err_free_out |
| 71 | 如果total则 |
| 73 | 转到:err_free_out |
| 77 | 打印错误信息("test failed: expected output size %d, got %d\n", Expected number of non-NULL elements in the output array , i) |
| 79 | 转到:err_free_out |
| 82 | 以i小于Size of each of the NULL-terminated input arrays 减1循环如果out[i]不等于in0[i]或out[i + Size of each of the NULL-terminated input arrays - 1]不等于in1[i]则 |
| 85 | 转到:err_free_out |
| 88 | err等于0 |
| 89 | 打印信息("test passed\n") |
| 91 | err_free_out : |
| 95 | err_free_elements : |
| 102 | err_free_in0 : |
| 105 | 返回:err |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |