函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:test_state

函数原型:static bool test_state(unsigned int *tasks, enum psi_states state)

返回类型:bool

参数:

类型参数名称
unsigned int *tasks
enum psi_statesstate
219  :state恒等于PSI_IO_SOME
220  返回:tasks[NR_IOWAIT]
221  :state恒等于PSI_IO_FULL
222  返回:tasks[NR_IOWAIT]且非tasks[NR_RUNNING]
223  :state恒等于PSI_MEM_SOME
224  返回:tasks[NR_MEMSTALL]
225  :state恒等于PSI_MEM_FULL
226  返回:tasks[NR_MEMSTALL]且非tasks[NR_RUNNING]
227  :state恒等于PSI_CPU_SOME
228  返回:tasks[NR_RUNNING]大于1
229  :state恒等于PSI_NONIDLE
230  返回:tasks[NR_IOWAIT]或tasks[NR_MEMSTALL]或tasks[NR_RUNNING]
232  默认
233  返回:false
调用者
名称描述
psi_group_change