Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:group_migrate_add_src - add a migration source css_set*@src_cset: the source css_set to add*@dst_cgrp: the destination cgroup*@mgctx: migration context* Tasks belonging to @src_cset are about to be migrated to @dst_cgrp

Proto:void cgroup_migrate_add_src(struct css_set *src_cset, struct cgroup *dst_cgrp, struct cgroup_mgctx *mgctx)

Type:void

Parameter:

TypeParameterName
struct css_set *src_cset
struct cgroup *dst_cgrp
struct cgroup_mgctx *mgctx
2577  lockdep_assert_held( & cgroup_mutex is the master lock)
2578  lockdep_assert_held( & css_set_lock)
2585  If dead and being drained, ignore for migration Then Return
2588  src_cgrp = look up cgroup associated with given css_set on the specified hierarchy
2590  If Not list_empty - tests whether a list is empty*@head: the list to test. Then Return
2593  WARN_ON(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)
2594  WARN_ON(mg_dst_cgrp)
2595  WARN_ON(!list_empty - tests whether a list is empty*@head: the list to test.)
2596  WARN_ON(!list_empty - tests whether a list is empty*@head: the list to test.)
2598  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 = src_cgrp
2599  mg_dst_cgrp = dst_cgrp
2600  ed get/put for css_set objects
2601  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_attach_taskgroup_attach_task - attach a task or a whole threadgroup to a cgroup*@dst_cgrp: the cgroup to attach to*@leader: the task or the leader of the threadgroup to be attached*@threadgroup: attach the whole threadgroup?
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
cgroup_transfer_tasksgroup_trasnsfer_tasks - move tasks from one cgroup to another*@to: cgroup to which the tasks will be moved*@from: cgroup in which the tasks currently reside* Locking rules between cgroup_post_fork() and the migration path* guarantee that, if a task is