函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:reweight_task

函数原型:void reweight_task(struct task_struct *p, int prio)

返回类型:void

参数:

类型参数名称
struct task_struct *p
intprio
2914  se等于调度实体
2915  cfs_rq等于cfs_rq_of(se)
2916  load等于 For load-balancing:
2917  weight等于scale_load(Nice levels are multiplicative, with a gentle 10% change for every* nice level changed[prio])
2919  reweight_entity(cfs_rq, se, weight, weight)
2920  inv_weight等于Inverse (2^32/x) values of the sched_prio_to_weight[] array, precalculated.* In cases where the weight does not change often, we can use the* precalculated inverse to speed up arithmetics by turning divisions* into multiplications:[prio]
调用者
名称描述
set_load_weight