函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ask_rq_lock - lock p->pi_lock and lock the rq @p resides on.

函数原型:struct rq *task_rq_lock(struct task_struct *p, struct rq_flags *rf)__acquires(p->pi_lock) __acquires(rq->lock)

返回类型:struct rq

参数:

类型参数名称
struct task_struct *p
struct rq_flags *rf
109  循环
110  raw_spin_lock_irqsave( & Protection of the PI data structures: , flags)
111  rq等于task_rq(p)
112  raw_spin_lock( & 运行队列锁)
131  rq_pin_lock(rq, rf)
132  返回:rq
134  raw_spin_unlock( & 运行队列锁)
135  raw_spin_unlock_irqrestore( & Protection of the PI data structures: , flags)
137 此条件成立可能性小(为编译器优化)(task_on_rq_migrating(p))循环
138  cpu_relax()
调用者
名称描述
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
sched_rr_get_interval
read_sum_exec_runtime
dl_task_timerThis is the bandwidth enforcement timer callback
inactive_task_timer
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
klp_try_switch_taskTry to safely switch a task to the target patch state. If it's currently* running, or it's sleeping on a to-be-patched or to-be-unpatched function, or* if the stack is unreliable, return false.