函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Shuffle tasks across CPUs, with the intent of allowing each CPU in the* system to become idle at a time and cut off its timer ticks. This is meant* to test the support for such tickless idle CPU in RCU.

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

返回类型:int

参数:

类型参数名称
void *arg
409  VERBOSE_TOROUT_STRING("torture_shuffle task started")
410  循环
411  We can use __set_current_state() here because schedule_timeout() calls* schedule() unconditionally.
412  Shuffle tasks such that we allow shuffle_idle_cpu to become idle.* A special case is when shuffle_idle_cpu = -1, in which case we allow* the tasks to run on all CPUs.
413  Absorb kthreads into a kernel function that won't return, so that* they won't ever access module text or data again.
414  当非Is it time for the current torture test to stop?循环
415  Each kthread must wait for kthread_should_stop() before returning from* its top-level function, otherwise segfaults ensue
416  返回:0