Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cgroup_kill_sb

Proto:static void cgroup_kill_sb(struct super_block *sb)

Type:void

Parameter:

TypeParameterName
struct super_block *sb
2139  kf_root = kernfs_root_from_sb(sb)
2140  root = cgroup_root_from_kf(kf_root)
2149  If list_empty - tests whether a list is empty*@head: the list to test. && root != The default hierarchy, reserved for the subsystems that are otherwise* unattached - it never has more than a single cgroup, and all tasks are* part of that cgroup. && Not percpu_ref_is_dying - test whether a percpu refcount is dying or dead*@ref: percpu_ref to test* Returns %true if @ref is dying or dead.* This function is safe to call as long as @ref is between init and exit Then percpu_ref_kill - drop the initial ref*@ref: percpu_ref to kill* Must be used to drop the initial ref on a percpu refcount; must be called* precisely once before shutdown.* Switches @ref into atomic mode before gathering up the percpu counters
2152  cgroup_put( & The root cgroup. Root is destroyed on its release. )
2153  kernfs_kill_sb(sb)