Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:group_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

Proto:static int cgroup_update_dfl_csses(struct cgroup *cgrp)

Type:int

Parameter:

TypeParameterName
struct cgroup *cgrp
2878  DEFINE_CGROUP_MGCTX(mgctx)
2884  lockdep_assert_held( & cgroup_mutex is the master lock)
2886  percpu_down_write( & cgroup_threadgroup_rwsem)
2889  spin_lock_irq( & css_set_lock)
2890  walk live descendants in preorder (dsct, d_css, cgrp)
2893  list_for_each_entry - iterate over list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(link, & * List of cgrp_cset_links pointing at css_sets with tasks in this * cgroup. Protected by css_set_lock., cset_link)
2894  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
2896  spin_unlock_irq( & css_set_lock)
2899  ret = group_migrate_prepare_dst - prepare destination css_sets for migration*@mgctx: migration context* Tasks are about to be moved and all the source css_sets have been* preloaded to @mgctx->preloaded_src_csets
2900  If ret Then Go to out_finish
2903  spin_lock_irq( & css_set_lock)
2908  list_for_each_entry_safe - iterate over list of given type safe against removal of list entry*@pos: the type * to use as a loop cursor.*@n: another type * to use as temporary storage*@head: the head for your list.(task, ntask, & Lists running through all tasks using this cgroup group.* mg_tasks lists tasks which belong to this cset but are in the* process of being migrated out or in. Protected by* css_set_rwsem, but, during migration, once tasks are moved to, cg_list)
2909  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
2911  spin_unlock_irq( & css_set_lock)
2913  ret = group_taskset_migrate - migrate a taskset*@mgctx: migration context* Migrate tasks in @mgctx as setup by migration preparation functions.* This function fails iff one of the ->can_attach callbacks fails and
2914  out_finish :
2915  group_migrate_finish - cleanup after attach*@mgctx: migration context* Undo cgroup_migrate_add_src() and cgroup_migrate_prepare_dst(). See* those functions for details.
2916  percpu_up_write( & cgroup_threadgroup_rwsem)
2917  Return ret
Caller
NameDescribe
cgroup_apply_control