函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Cause the torture test to shutdown the system after the test has* run for the time specified by the shutdown_secs parameter.

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

返回类型:int

参数:

类型参数名称
void *arg
482  VERBOSE_TOROUT_STRING("torture_shutdown task started")
483  ktime_snap等于ktime_get()
484 时间比较且非Is it time for the current torture test to stop?循环
486  如果verbose打印警报信息("%s"TORTURE_FLAG"torture_shutdown task: %llu ms remaining\n", torture_type, ktime_ms_delta(ime to system shutdown. , ktime_snap))
491  set_current_state(睡眠态)
492  schedule_hrtimeout - sleep until timeout*@expires: timeout value (ktime_t)*@mode: timer mode* Make the current task sleep until the given expiry time has* elapsed. The routine will return immediately unless
493  ktime_snap等于ktime_get()
495  如果Is it time for the current torture test to stop?
496  Each kthread must wait for kthread_should_stop() before returning from* its top-level function, otherwise segfaults ensue
497  返回:0
502  VERBOSE_TOROUT_STRING("torture_shutdown task shutting down system")
503  Variables for auto-shutdown. This allows "lights out" torture runs* to be fully scripted. = NULL
504  如果torture_shutdown_hooktorture_shutdown_hook()
506  否则VERBOSE_TOROUT_STRING("No torture_shutdown_hook(), skipping.")
508  Dump the ftrace buffer, but only one time per callsite per boot.(DUMP_ALL)
509  kernel_power_off - power_off the system* Shutdown everything and perform a clean system power_off.
510  返回:0