函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kthread function to register callbacks used to test RCU barriers.

函数原型:static int rcu_torture_barrier_cbs(void *arg)

返回类型:int

参数:

类型参数名称
void *arg
2029  myid等于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(当前进程, MAX_NICE)
2037  循环
2038  wait_event - sleep until a condition gets true*@wq_head: the waitqueue to wait on*@condition: a C expression for the event to wait for* The process is put to sleep (TASK_UNINTERRUPTIBLE) until the*@condition evaluates to true(Coordinate barrier testing. [myid], (newphase = smp_load_acquire( & Test phase. )) != lastphase || Is it time for the current torture test to stop?)
2042  lastphase等于newphase
2043  如果Is it time for the current torture test to stop?退出
2049  禁止中断()
2050  call( & rcu, Callback function for RCU barrier testing. )
2051  开中断()
2052  如果atomic_dec_and_test( & Barrier callbacks registered. )则wake_up( & barrier_wq)
2054  当非Is it time for the current torture test to stop?循环
2055  如果(cb_barrier != NULL)则cb_barrier()
2057  destroy_rcu_head_on_stack( & rcu)
2058  Each kthread must wait for kthread_should_stop() before returning from* its top-level function, otherwise segfaults ensue
2059  返回:0