Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\psi.c Create Date:2022-07-28 09:46:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:test_state

Proto:static bool test_state(unsigned int *tasks, enum psi_states state)

Type:bool

Parameter:

TypeParameterName
unsigned int *tasks
enum psi_statesstate
219  Case state == PSI_IO_SOME
220  Return tasks[NR_IOWAIT]
221  Case state == PSI_IO_FULL
222  Return tasks[NR_IOWAIT] && Not tasks[NR_RUNNING]
223  Case state == PSI_MEM_SOME
224  Return tasks[NR_MEMSTALL]
225  Case state == PSI_MEM_FULL
226  Return tasks[NR_MEMSTALL] && Not tasks[NR_RUNNING]
227  Case state == PSI_CPU_SOME
228  Return tasks[NR_RUNNING] > 1
229  Case state == PSI_NONIDLE
230  Return tasks[NR_IOWAIT] || tasks[NR_MEMSTALL] || tasks[NR_RUNNING]
232  Default
233  Return false
Caller
NameDescribe
psi_group_change