函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cgroup_destroy_root

函数原型:static void cgroup_destroy_root(struct cgroup_root *root)

返回类型:void

参数:

类型参数名称
struct cgroup_root *root
1316  cgrp等于 The root cgroup. Root is destroyed on its release.
1319  trace_cgroup_destroy_root(root)
1321  group_lock_and_drain_offline - lock cgroup_mutex and drain offlined csses*@cgrp: root of the target subtree* Because css offlining is asynchronous, userland may try to re-enable a* controller while the previous css is still around. This function grabs
1323  BUG_ON(atomic_read( & Number of cgroups in the hierarchy, used only for /proc/cgroups ))
1324  BUG_ON(!链表为空)
1327  WARN_ON(rebind_subsystems( & 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., The bitmask of subsystems attached to this hierarchy ))
1333  spin_lock_irq( & css_set_lock)
1336  删除链表项
1337  删除链表项
1338  kfree(link)
1341  spin_unlock_irq( & css_set_lock)
1343  如果非链表为空
1344  删除链表项
1345  cgroup_root_count自减
1348  cgroup_exit_root_id(root)
1350  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
1352  kernfs_destroy_root(kf_root)
1353  cgroup_free_root(root)
调用者
名称描述
css_free_rwork_fnss destruction is four-stage process