Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cgroup\cgroup.c Create Date:2022-07-28 11:08:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:group_migrate_add_task - add a migration target task to a migration context*@task: target task*@mgctx: target migration context* Add @task, which is a migration target, to @mgctx->tset. This function* becomes noop if @task doesn't need to be migrated

Proto:static void cgroup_migrate_add_task(struct task_struct *task, struct cgroup_mgctx *mgctx)

Type:void

Parameter:

TypeParameterName
struct task_struct *task
struct cgroup_mgctx *mgctx
2295  lockdep_assert_held( & css_set_lock)
2298  If Per task flags (PF_*), defined further below: & Getting shut down Then Return
2302  WARN_ON_ONCE(list_empty - tests whether a list is empty*@head: the list to test.)
2304  cset = ask_css_set - obtain a task's css_set*@task: the task to obtain css_set for* See task_css_set_check().
2305  If Not If this cset is acting as the source of migration the following* two fields are set. mg_src_cgrp and mg_dst_cgrp are* respectively the source and destination cgroups of the on-going* migration. mg_dst_cset is the destination cset the target tasks Then Return
2308  he number of tasks in the set ++
2310  list_move_tail - delete from one list and add as another's tail*@list: the entry to move*@head: the head that will follow our entry
2311  If list_empty - tests whether a list is empty*@head: the list to test. Then list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
2314  If list_empty - tests whether a list is empty*@head: the list to test. Then list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
Caller
NameDescribe
cgroup_migrategroup_migrate - migrate a process or task to a cgroup*@leader: the leader of the process or the task to migrate*@threadgroup: whether @leader points to the whole process or a single task*@mgctx: migration context
cgroup_update_dfl_cssesgroup_update_dfl_csses - update css assoc of a subtree in default hierarchy*@cgrp: root of the subtree to update csses for*@cgrp's control masks have changed and its subtree's css associations* need to be updated accordingly