Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\sched.h Create Date:2022-07-28 05:59:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:task_has_idle_policy

Proto:static inline int task_has_idle_policy(struct task_struct *p)

Type:int

Parameter:

TypeParameterName
struct task_struct *p
177  Return idle_policy(policy)
Caller
NameDescribe
set_load_weight
__sched_setscheduler
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
check_preempt_wakeupPreempt the current task with a newly woken task if needed: