函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:void cgroup_move_task(struct task_struct *task, struct css_set *to)

返回类型:void

参数:

类型参数名称
struct task_struct *task
struct css_set *to
904  task_flags等于0
908  如果static_branch_likely( & psi_disabled)则
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  返回
917  rq等于ask_rq_lock - lock p->pi_lock and lock the rq @p resides on.
919  如果进程处于任务队列task_flags等于TSK_RUNNING
921  否则如果in_iowaittask_flags等于TSK_IOWAIT
924  如果任务标志按位与Stalled due to lack of memory task_flags或等于TSK_MEMSTALL
927  如果task_flagspsi_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  如果task_flagspsi_task_change(task, 0, task_flags)
936  task_rq_unlock(rq, task, & rf)
调用者
名称描述
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