函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cfs_rq_of

函数原型:static inline struct cfs_rq *cfs_rq_of(struct sched_entity *se)

返回类型:struct cfs_rq

参数:

类型参数名称
struct sched_entity *se
452  p等于CFS operations on generic schedulable entities:
453  rq等于task_rq(p)
455  返回:cfs
调用者
名称描述
sched_slice分配给进程的运行时间
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