Function report |
Source Code:kernel\torture.c |
Create Date:2022-07-28 13:50:02 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Cause the torture test to shutdown the system after the test has* run for the time specified by the shutdown_secs parameter.
Proto:static int torture_shutdown(void *arg)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| void * | arg |
| 482 | VERBOSE_TOROUT_STRING("torture_shutdown task started") |
| 483 | ktime_snap = ktime_get() |
| 486 | If verbose Then pr_alert("%s"TORTURE_FLAG"torture_shutdown task: %llu ms remaining\n", torture_type, ktime_ms_delta(ime to system shutdown. , ktime_snap)) |
| 493 | ktime_snap = ktime_get() |
| 495 | If Is it time for the current torture test to stop? Then |
| 497 | Return 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 | If torture_shutdown_hook Then torture_shutdown_hook() |
| 506 | Else VERBOSE_TOROUT_STRING("No torture_shutdown_hook(), skipping.") |
| 509 | kernel_power_off - power_off the system* Shutdown everything and perform a clean system power_off. |
| 510 | 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 |