函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cgroup_kill_sb

函数原型:static void cgroup_kill_sb(struct super_block *sb)

返回类型:void

参数:

类型参数名称
struct super_block *sb
2139  kf_root等于kernfs_root_from_sb(sb)
2140  root等于cgroup_root_from_kf(kf_root)
2149  如果链表为空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.且非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 exitpercpu_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)