函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:group_migrate_finish - cleanup after attach*@mgctx: migration context* Undo cgroup_migrate_add_src() and cgroup_migrate_prepare_dst(). See* those functions for details.

函数原型:void cgroup_migrate_finish(struct cgroup_mgctx *mgctx)

返回类型:void

参数:

类型参数名称
struct cgroup_mgctx *mgctx
2534  LIST_HEAD(preloaded)
2537  lockdep_assert_held( & cgroup_mutex is the master lock)
2539  spin_lock_irq( & css_set_lock)
2541  加入二个链表项并重新初始化
2542  加入二个链表项并重新初始化
2545  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 = NULL
2546  mg_dst_cgrp = NULL
2547  mg_dst_cset = NULL
2548  删除链表项并重新初始化
2549  put_css_set_locked(cset)
2552  spin_unlock_irq( & css_set_lock)
调用者
名称描述
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