Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\deadline.c Create Date:2022-07-28 09:40:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:This 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

Proto:void __setparam_dl(struct task_struct *p, const struct sched_attr *attr)

Type:void

Parameter:

TypeParameterName
struct task_struct *p
const struct sched_attr *attr
2614  dl_se = dl
2616  Maximum runtime for each instance = SCHED_DEADLINE
2617  Relative deadline of each instance = sched_deadline
2618  Separation of two instances (period) = If sched_period Else Relative deadline of each instance
2619  Specifying the scheduler behaviour = sched_flags
2620  dl_runtime / dl_period = to_ratio( Separation of two instances (period) , Maximum runtime for each instance )
2621  dl_runtime / dl_deadline = to_ratio( Relative deadline of each instance , Maximum runtime for each instance )
Caller
NameDescribe
__setscheduler_params