Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rcu\rcuperf.c Create Date:2022-07-28 10:23:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:RCU perf shutdown kthread. Just waits to be awakened, then shuts* down system.

Proto:static int rcu_perf_shutdown(void *arg)

Type:int

Parameter:

TypeParameterName
void *arg
576  Do
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  When atomic_read( & n_rcu_perf_writer_finished) < nrealwriters cycle
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  Return -EINVAL