Function report |
Source Code:kernel\rcu\rcutorture.c |
Create Date:2022-07-28 10:22:32 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Initialize RCU barrier testing.
Proto:static int rcu_torture_barrier_init(void)
Type:int
Parameter:Nothing
2103 | If n_barrier_cbs <= 0 Then Return 0 |
2105 | If (call == NULL || cb_barrier == NULL) Then |
2106 | pr_alert("%s"TORTURE_FLAG" Call or barrier ops missing for %s,\n", torture_type, name) |
2109 | pr_alert("%s"TORTURE_FLAG" RCU barrier testing omitted from run.\n", torture_type) |
2112 | Return 0 |
2114 | atomic_set( & Barrier callbacks registered. , 0) |
2115 | atomic_set( & Barrier callbacks invoked. , 0) |
2116 | barrier_cbs_tasks = 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). |
2121 | If barrier_cbs_tasks == NULL || Not Coordinate barrier testing. Then Return -ENOMEM |
2123 | When i < n_barrier_cbs cycle |
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]) |
2131 | Return torture_create_kthread(kthread function to drive and coordinate RCU barrier testing. , NULL, barrier_task) |
Name | Describe |
---|---|
rcu_torture_init |
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 |