函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:When 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.

函数原型:static void switched_to_rt(struct rq *rq, struct task_struct *p)

返回类型:void

参数:

类型参数名称
struct rq *rq
struct task_struct *p
2225  如果进程处于任务队列当前任务不等于p
2230  如果prio小于priocpu_online(根据rq获取CPU)则标记当前进程需要被调度出去