Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ss_clear_dir - remove subsys files in a cgroup directory*@css: taget css

Proto:static void css_clear_dir(struct cgroup_subsys_state *css)

Type:void

Parameter:

TypeParameterName
struct cgroup_subsys_state *css
1649  cgrp = PI: the cgroup that this css is attached to
1652  If Not (flags & CSS_VISIBLE) Then Return
1655  flags &= ~CSS_VISIBLE
1657  If Not PI: the cgroup subsystem that this css is attached to Then
1658  If group_on_dfl - test whether a cgroup is on the default hierarchy*@cgrp: the cgroup of interest* The default hierarchy is the v2 interface of cgroup and this function* can be used to test whether a cgroup is on the default hierarchy for* cases where a Then cfts = cgroup_base_files
1660  Else cfts = cgroup-v1.c
1663  cgroup_addrm_files(css, cgrp, cfts, false)
1664  Else
1665  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.(cfts, & * List of cftypes. Each entry is the first entry of an array * terminated by zero length name., node)
1666  cgroup_addrm_files(css, cgrp, cfts, false)
Caller
NameDescribe
cgroup_apply_control_disablegroup_apply_control_disable - kill or hide csses according to control*@cgrp: root of the target subtree* Walk @cgrp's subtree and kill and hide csses so that they match* cgroup_ss_mask() and cgroup_visible_mask()
kill_css
cgroup_destroy_lockedgroup_destroy_locked - the first stage of cgroup destruction*@cgrp: cgroup to be destroyed* css's make use of percpu refcnts whose killing latency shouldn't be* exposed to userland and are RCU protected