Function report |
Source Code:lib\test_list_sort.c |
Create Date:2022-07-28 06:29:49 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:list_sort_test
Proto:static int __init list_sort_test(void)
Type:int
Parameter:Nothing
77 | pr_debug("start testing list_sort()\n") |
80 | If Not Array, containing pointers to all elements in the test list Then Return err |
83 | When i < including head cycle |
84 | el = kmalloc( size of el , GFP_KERNEL) |
89 | value = prandom_u32() % including head / 3 |
91 | poison1 = TEST_POISON1 |
92 | poison2 = TEST_POISON2 |
109 | cmp_result = cmp(NULL, cur, next) |
110 | If cmp_result > 0 Then |
117 | If cmp_result == 0 && serial >= serial Then |
127 | count++ |
135 | If count != including head Then |
140 | err = 0 |
141 | exit : |
142 | When i < including head cycle kfree(Array, containing pointers to all elements in the test list [i]) |
145 | 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 |