Function report | 
Source Code:lib\test_memcat_p.c | 
Create Date:2022-07-28 06:35:08 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:test_memcat_p_init
Proto:static int __init test_memcat_p_init(void)
Type:int
Parameter:Nothing
| 27 | in0 = kcalloc - allocate memory for an array. The memory is set to zero.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc). | 
| 31 | in1 = kcalloc - allocate memory for an array. The memory is set to zero.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc). | 
| 32 | If Not in1 Then Go to err_free_in0 | 
| 35 | When i < Size of each of the NULL-terminated input arrays - 1 cycle | 
| 36 | in0[i] = kmalloc( size of in0 , GFP_KERNEL) | 
| 37 | If Not in0[i] Then Go to err_free_elements | 
| 40 | in1[i] = kmalloc( size of in1 , GFP_KERNEL) | 
| 43 | Go to err_free_elements | 
| 57 | If Not out Then Go to err_free_all_elements | 
| 61 | When p && i < Size of each of the NULL-terminated input arrays * 2 - 1 cycle | 
| 67 | Go to err_free_out | 
| 71 | If total Then | 
| 73 | Go to err_free_out | 
| 76 | If i != Expected number of non-NULL elements in the output array Then | 
| 77 | pr_err("test failed: expected output size %d, got %d\n", Expected number of non-NULL elements in the output array , i) | 
| 79 | Go to err_free_out | 
| 82 | When i < Size of each of the NULL-terminated input arrays - 1 cycle If out[i] != in0[i] || out[i + Size of each of the NULL-terminated input arrays - 1] != in1[i] Then | 
| 85 | Go to err_free_out | 
| 88 | err = 0 | 
| 89 | pr_info("test passed\n") | 
| 91 | err_free_out : | 
| 95 | err_free_elements : | 
| 102 | err_free_in0 : | 
| 105 | Return err | 
| 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  |