函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:to_ratio

函数原型:unsigned long to_ratio(u64 period, u64 runtime)

返回类型:unsigned long

参数:

类型参数名称
u64period
u64runtime
2924  如果runtime恒等于Single value that denotes runtime == period, ie unlimited time.则返回:BW_UNIT
2932  如果period恒等于0则返回:0
2935  返回:div64_u64 - unsigned 64bit divide with 64bit divisor*@dividend: 64bit dividend*@divisor: 64bit divisor* This implementation is a modified version of the algorithm proposed* by the book 'Hacker's Delight'. The original source and full proof
调用者
名称描述
init_dl_bw
sched_dl_global_validate
init_dl_rq_bw_ratio
sched_dl_do_global
sched_dl_overflowWe must be sure that accepting a new task (or allowing changing the* parameters of an existing one) is consistent with the bandwidth* constraints. If yes, this function also accordingly updates the currently
__setparam_dlThis function initializes the sched_dl_entity of a newly becoming* SCHED_DEADLINE task.* Only the static values are considered here, the actual runtime and the* absolute deadline will be properly calculated when the task is enqueued