Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cfs_rq_of

Proto:static inline struct cfs_rq *cfs_rq_of(struct sched_entity *se)

Type:struct cfs_rq

Parameter:

TypeParameterName
struct sched_entity *se
452  p = CFS operations on generic schedulable entities:
453  rq = task_rq(p)
455  Return cfs
Caller
NameDescribe
sched_sliceWe calculate the wall-time slice from the period by taking a part* proportional to the weight.* s = p*P[w/rw]
update_curr_fair
reweight_task
__clear_buddies_last
__clear_buddies_next
__clear_buddies_skip
enqueue_task_fairThe enqueue_task method is called before nr_running is* increased. Here we update the fair scheduling stats and* then put the task into the rbtree:
dequeue_task_fairThe dequeue_task method is called before nr_running is* decreased. We remove the task from the rbtree and* update the fair scheduling stats:
set_last_buddy
set_next_buddy
set_skip_buddy
check_preempt_wakeupPreempt the current task with a newly woken task if needed:
put_prev_task_fairAccount for a descheduled task:
yield_to_task_fair
task_tick_fairscheduler tick hitting a task of our scheduling class
detach_entity_cfs_rq
attach_entity_cfs_rq
detach_task_cfs_rq
attach_task_cfs_rq
set_next_task_fairAccount for a task changing its policy or group.* This routine is mostly called to set cfs_rq->curr field when a task* migrates between groups/classes.
get_rr_interval_fair