Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static void cgroup_update_populated(struct cgroup *cgrp, bool populated)

Type:void

Parameter:

TypeParameterName
struct cgroup *cgrp
boolpopulated
800  struct cgroup * child = NULL
801  adj = If populated Then 1 Else -1
803  lockdep_assert_held( & css_set_lock)
805  Do
806  was_populated = synchronization, the result can only be used as a hint
808  If Not child Then
810  Else
817  If was_populated == synchronization, the result can only be used as a hint Then Break
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  When cgrp cycle
Caller
NameDescribe
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