Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\psi.c Create Date:2022-07-28 09:46:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:group_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

Proto:void cgroup_move_task(struct task_struct *task, struct css_set *to)

Type:void

Parameter:

TypeParameterName
struct task_struct *task
struct css_set *to
904  task_flags = 0
908  If static_branch_likely( & psi_disabled) Then
913  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization( Control Group info protected by css_set_lock: , to)
914  Return
917  rq = ask_rq_lock - lock p->pi_lock and lock the rq @p resides on.
919  If task_on_rq_queued(task) Then task_flags = TSK_RUNNING
921  Else if in_iowait Then task_flags = TSK_IOWAIT
924  If Per task flags (PF_*), defined further below: & Stalled due to lack of memory Then task_flags |= TSK_MEMSTALL
927  If task_flags Then psi_task_change(task, task_flags, 0)
931  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization( Control Group info protected by css_set_lock: , to)
933  If task_flags Then psi_task_change(task, 0, task_flags)
936  task_rq_unlock(rq, task, & rf)
Caller
NameDescribe
css_set_move_taskss_set_move_task - move a task from one css_set to another*@task: task being moved*@from_cset: css_set @task currently belongs to (may be NULL)*@to_cset: new css_set @task is being moved to (may be NULL)*@use_mg_tasks: move to @to_cset->mg_tasks instead