函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:group_update_populated - update the populated count of a cgroup*@cgrp: the target cgroup*@populated: inc or dec populated count* One of the css_sets associated with @cgrp is either getting its first* task or losing the last

函数原型:static void cgroup_update_populated(struct cgroup *cgrp, bool populated)

返回类型:void

参数:

类型参数名称
struct cgroup *cgrp
boolpopulated
800  struct cgroup * child = NULL
801  adj等于如果populated则1否则负1
803  lockdep_assert_held( & css_set_lock)
805  循环
806  was_populated等于 synchronization, the result can only be used as a hint
808  如果非child
810  否则
813  否则nr_populated_domain_children加等于adj
817  如果was_populated恒等于 synchronization, the result can only be used as a hint 退出
820  cgroup1_check_for_release(cgrp)
821  cgroup_path() takes a spin lock(notify_populated, cgrp, synchronization, the result can only be used as a hint )
823  group_file_notify - generate a file modified event for a cgroup_file*@cfile: target cgroup_file*@cfile must have been obtained by setting cftype->file_offset.
825  child等于cgrp
826  cgrp等于cgroup_parent(cgrp)
827 cgrp循环
调用者
名称描述
css_set_update_populatedss_set_update_populated - update populated state of a css_set*@cset: target css_set*@populated: whether @cset is populated or depopulated*@cset is either getting the first task or losing the last. Update the
cgroup_setup_root