Function report |
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 activity | Download SCCT | Chinese |
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:
| Type | Parameter | Name |
|---|---|---|
| struct task_struct * | task | |
| struct css_set * | to |
| 904 | task_flags = 0 |
| 908 | If static_branch_likely( & psi_disabled) Then |
| 914 | Return |
| 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) |
| 933 | If task_flags Then psi_task_change(task, 0, task_flags) |
| 936 | task_rq_unlock(rq, task, & rf) |
| Name | Describe |
|---|---|
| css_set_move_task | ss_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 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |