Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:task_on_rq_queued

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

Type:int

Parameter:

TypeParameterName
struct task_struct *p
1633  Return on_rq == ask_struct::on_rq states:
Caller
NameDescribe
check_preempt_curr
ttwu_remoteCalled in case the task @p isn't fully descheduled from its runqueue,* in this case we must do a remote wakeup. Its a 'light' wakeup though,* since all we need to do is flip p->state to TASK_RUNNING, since* the task is still ->on_rq.
task_sched_runtimeReturn accounted runtime for the task.* In case the task is currently running, return the runtime plus current's* pending runtime that have not been accounted yet.
set_user_nice
__sched_setscheduler
prio_changed_fairPriority of the task has changed. Check to see if we preempt* the current task.
switched_to_fair
switched_to_rtWhen switching a task to RT, we may overload the runqueue* with RT tasks. In this case we try to push them off to* other runqueues.
prio_changed_rtPriority of the task has changed. This may cause* us to initiate a push or pull.
dl_change_utilization
dl_task_timerThis is the bandwidth enforcement timer callback
switched_from_dl
switched_to_dlWhen switching to -deadline, we may overload the rq, then* we try to push someone off, if possible.
prio_changed_dlIf the scheduling parameters of a -deadline task changed,* a push or pull operation might be needed.
cgroup_move_taskgroup_move_task - move task to a different cgroup*@task: the task*@to: the target css_set* Move task to a new cgroup and safely migrate its associated stall* state between the different groups