函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Pick 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

函数原型:static struct sched_entity *pick_next_entity(struct cfs_rq *cfs_rq, struct sched_entity *curr)

返回类型:struct sched_entity

参数:

类型参数名称
struct cfs_rq *cfs_rq
struct sched_entity *curr
4215  left等于获取下一个调度进程的se
4222  如果非leftcurrentity_before(curr, left)则left等于curr
4225  se等于left
4231  如果skip恒等于se
4234  如果se恒等于curr
4236  否则
4238  如果非secondcurrentity_before(curr, second)则second等于curr
4242  如果secondwakeup_preempt_entity(second, left)小于1则se等于second
4249  如果lastwakeup_preempt_entity(last, left)小于1则se等于last
4255  如果nextwakeup_preempt_entity(next, left)小于1则se等于next
4258  清空队列指针
4260  返回:se
调用者
名称描述
pick_next_task_fair