函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-27 10:36:10
Last Modify:2022-05-22 13:40:38 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:dequeue_task

函数原型:static inline void dequeue_task(struct rq *rq, struct task_struct *p, int flags)

返回类型:void

参数:

类型参数名称
struct rq *rq
struct task_struct *p
intflags
1307  如果非flags按位与Matches ENQUEUE_NOCLOCK 的值则更新rq运行时间
1310  如果非flags按位与Matches ENQUEUE_RESTORE 的值则
1311  sched_info_dequeued(rq, p)
1312  psi_dequeue(p, flags & {de,en}queue flags:* DEQUEUE_SLEEP - task is no longer runnable* ENQUEUE_WAKEUP - task just became runnable* SAVE/RESTORE - an otherwise spurious dequeue/enqueue, done to ensure tasks* are in a known state which allows modification. Such pairs)
1315  uclamp_rq_dec(rq, p)
1316  dequeue_task(rq, p, flags)
调用者
名称描述
deactivate_task删除进程
set_user_nice
__sched_setscheduler