函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Initialize RCU barrier testing.

函数原型:static int rcu_torture_barrier_init(void)

返回类型:int

参数:

2103  如果n_barrier_cbs小于等于0则返回:0
2105  如果(call == NULL || cb_barrier == NULL)则
2106  打印警报信息("%s"TORTURE_FLAG" Call or barrier ops missing for %s,\n", torture_type, name)
2109  打印警报信息("%s"TORTURE_FLAG" RCU barrier testing omitted from run.\n", torture_type)
2112  返回:0
2114  atomic_set( & Barrier callbacks registered. , 0)
2115  atomic_set( & Barrier callbacks invoked. , 0)
2116  barrier_cbs_tasks等于分配数组内存并置零
2119  Coordinate barrier testing. 等于分配数组内存并置零
2121  如果barrier_cbs_tasks恒等于NULL或非Coordinate barrier testing. 则返回:负ENOMEM
2123 i小于n_barrier_cbs循环
2124  init_waitqueue_head( & Coordinate barrier testing. [i])
2125  ret等于torture_create_kthread(kthread function to register callbacks used to test RCU barriers. , (void * )(long)i, barrier_cbs_tasks[i])
2128  如果ret则返回:ret
2131  返回:torture_create_kthread(kthread function to drive and coordinate RCU barrier testing. , NULL, barrier_task)
调用者
名称描述
rcu_torture_init