Function report |
Source Code:kernel\rcu\rcutorture.c |
Create Date:2022-07-28 10:22:29 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:kthread function to register callbacks used to test RCU barriers.
Proto:static int rcu_torture_barrier_cbs(void *arg)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
void * | arg |
2030 | lastphase = 0 |
2034 | init_rcu_head_on_stack( & rcu) |
2035 | VERBOSE_TOROUT_STRING("rcu_torture_barrier_cbs task started") |
2036 | set_user_nice(current process, MAX_NICE) |
2037 | Do |
2043 | If Is it time for the current torture test to stop? Then Break |
2049 | local_irq_disable() |
2050 | call( & rcu, Callback function for RCU barrier testing. ) |
2052 | If atomic_dec_and_test( & Barrier callbacks registered. ) Then wake_up( & barrier_wq) |
2054 | When Not Is it time for the current torture test to stop? cycle |
2055 | If (cb_barrier != NULL) Then cb_barrier() |
2057 | destroy_rcu_head_on_stack( & rcu) |
2059 | Return 0 |
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 |