函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:清空队列指针

函数原型:static void clear_buddies(struct cfs_rq *cfs_rq, struct sched_entity *se)

返回类型:void

参数:

类型参数名称
struct cfs_rq *cfs_rq
struct sched_entity *se
4065  如果last恒等于se__clear_buddies_last(se)
4068  如果next恒等于se__clear_buddies_next(se)
4071  如果skip恒等于se__clear_buddies_skip(se)
调用者
名称描述
dequeue_entity
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
yield_task_fairsched_yield() is very simple* The magic of dealing with the ->skip buddy is in pick_next_entity.