函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:进程处于任务队列

函数原型:static inline int task_on_rq_queued(struct task_struct *p)

返回类型:int

参数:

类型参数名称
struct task_struct *p
1633  返回:on_rq恒等于ask_struct::on_rq states:
调用者
名称描述
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
sched_stop_runnable