函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:RCU perf shutdown kthread. Just waits to be awakened, then shuts* down system.

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

返回类型:int

参数:

类型参数名称
void *arg
576  循环
577  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(shutdown_wq, atomic_read( & n_rcu_perf_writer_finished) >= nrealwriters)
580 atomic_read( & n_rcu_perf_writer_finished)小于nrealwriters循环
581  smp_mb()
582  rcu_perf_cleanup()
583  kernel_power_off - power_off the system* Shutdown everything and perform a clean system power_off.
584  返回:负EINVAL