函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-27 10:36:13
Last Modify:2022-05-22 13:40:38 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:switched_from, switched_to and prio_changed must _NOT_ drop rq->lock,* use the balance_callback list if you want balancing.* this means any call to check_class_changed() must be followed by a call to* balance_callback().

函数原型:static inline void check_class_changed(struct rq *rq, struct task_struct *p, const struct sched_class *prev_class, int oldprio)

返回类型:void

参数:

类型参数名称
struct rq *rq
struct task_struct *p
const struct sched_class *prev_class
intoldprio
1409  如果prev_class不等于调度函数
1410  如果switched_fromswitched_from(rq, p)
1413  switched_to(rq, p)
1414  否则如果oldprio不等于priodl_task(p)则prio_changed(rq, p, oldprio)
调用者
名称描述
__sched_setscheduler