函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:获取下一个调度进程的se

函数原型:struct sched_entity *__pick_first_entity(struct cfs_rq *cfs_rq)

返回类型:struct sched_entity

参数:

类型参数名称
struct cfs_rq *cfs_rq
601  left等于Same as rb_first(), but O(1) ( & tasks_timeline)
603  如果非left则返回:NULL
606  返回:rb_entry(left, structsched_entity, run_node)
调用者
名称描述
check_preempt_tick检查当前进程是否需要被抢占
pick_next_entityPick the next process, keeping these things in mind, in this order:* 1) keep things fair between processes/task groups* 2) pick the "next" process, since someone really wants that to run* 3) pick the "last" process, for cache locality* 4) do not run the
print_cfs_rq