函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_static_keys.c Create Date:2022-07-27 07:29:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:test_static_key_init

函数原型:static int __init test_static_key_init(void)

返回类型:int

参数:

114  struct test_key static_key_tests[] = {{init_state = true, key = & ld keys , test_key = & old_true_key_static_key_true, }, {init_state = false, key = & old_false_key, test_key = & old_false_key_static_key_false, }, {init_state = true, key = & key, test_key = & true_key_static_branch_likely, }, {init_state = true, key = & key, test_key = & true_key_static_branch_unlikely, }, {init_state = false, key = & key, test_key = & false_key_static_branch_likely, }, {init_state = false, key = & key, test_key = & false_key_static_branch_unlikely, }, {init_state = true, key = & xternal , test_key = & base_old_true_key_static_key_true, }, {init_state = false, key = & base_inv_old_true_key, test_key = & base_inv_old_true_key_static_key_true, }, {init_state = false, key = & base_old_false_key, test_key = & base_old_false_key_static_key_false, }, {init_state = true, key = & base_inv_old_false_key, test_key = & base_inv_old_false_key_static_key_false, }, {init_state = true, key = & key, test_key = & base_true_key_static_branch_likely, }, {init_state = true, key = & key, test_key = & base_true_key_static_branch_unlikely, }, {init_state = false, key = & key, test_key = & base_inv_true_key_static_branch_likely, }, {init_state = false, key = & key, test_key = & base_inv_true_key_static_branch_unlikely, }, {init_state = false, key = & key, test_key = & base_false_key_static_branch_likely, }, {init_state = false, key = & key, test_key = & base_false_key_static_branch_unlikely, }, {init_state = true, key = & key, test_key = & base_inv_false_key_static_branch_likely, }, {init_state = true, key = & key, test_key = & base_inv_false_key_static_branch_unlikely, }, }
211  size等于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(static_key_tests)
213  ret等于verify_keys(static_key_tests, size, false)
214  如果ret则转到:out
217  invert_keys(static_key_tests, size)
218  ret等于verify_keys(static_key_tests, size, true)
219  如果ret则转到:out
222  invert_keys(static_key_tests, size)
223  ret等于verify_keys(static_key_tests, size, false)
224  如果ret则转到:out
226  返回:0
227  out :
228  返回:ret