Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-28 09:35:27
Last Modify:2022-05-22 13:40:38 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ask_rq_lock - lock p->pi_lock and lock the rq @p resides on.

Proto:struct rq *task_rq_lock(struct task_struct *p, struct rq_flags *rf)__acquires(p->pi_lock) __acquires(rq->lock)

Type:struct rq

Parameter:

TypeParameterName
struct task_struct *p
struct rq_flags *rf
109  cycle
110  raw_spin_lock_irqsave( & Protection of the PI data structures: , flags)
111  rq = task_rq(p)
112  raw_spin_lock( & runqueue lock: )
131  rq_pin_lock(rq, rf)
132  Return rq
134  raw_spin_unlock( & runqueue lock: )
135  raw_spin_unlock_irqrestore( & Protection of the PI data structures: , flags)
137  When Value for the false possibility is greater at compile time(task_on_rq_migrating(p)) cycle
138  cpu_relax()
Caller
NameDescribe
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.