函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kthread function to drive and coordinate RCU barrier testing.

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

返回类型:int

参数:

类型参数名称
void *arg
2067  VERBOSE_TOROUT_STRING("rcu_torture_barrier task starting")
2068  循环
2069  atomic_set( & Barrier callbacks invoked. , 0)
2070  atomic_set( & Barrier callbacks registered. , n_barrier_cbs)
2072  smp_store_release( & Test phase. , !Test phase. )
2073 i小于n_barrier_cbs循环wake_up( & Coordinate barrier testing. [i])
2075  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(barrier_wq, atomic_read( & Barrier callbacks registered. ) == 0 || Is it time for the current torture test to stop?)
2078  如果Is it time for the current torture test to stop?退出
2080  n_barrier_attempts自加
2081  cb_barrier()
2084  打印错误信息("barrier_cbs_invoked = %d, n_barrier_cbs = %d\n", atomic_read( & Barrier callbacks invoked. ), n_barrier_cbs)
2087  WARN_ON_ONCE(1)
2088  否则
2091  schedule_timeout_interruptible(HZ / 10)
2092  当非Is it time for the current torture test to stop?循环
2093  Each kthread must wait for kthread_should_stop() before returning from* its top-level function, otherwise segfaults ensue
2094  返回:0