函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:put_css_set_locked

函数原型:void put_css_set_locked(struct css_set *cset)

返回类型:void

参数:

类型参数名称
struct css_set *cset
939  lockdep_assert_held( & css_set_lock)
941  如果非_dec_and_test - decrement a refcount and test if it is 0*@r: the refcount* Similar to atomic_dec_and_test(), it will WARN on underflow and fail to* decrement when saturated at REFCOUNT_SATURATED则返回
944  WARN_ON_ONCE(!链表为空)
948  删除链表项
949  设置一个css引用
951  从哈希表移除对象
952  1 for init_css_set 自减
955  删除链表项
956  删除链表项
957  如果cgroup_parent(he cgroup and css_set this link associates )则cgroup_put(he cgroup and css_set this link associates )
959  kfree(link)
962  如果css_set_threaded(cset)则
963  删除链表项
964  put_css_set_locked(For a domain cgroup, the following points to self. If threaded,* to the matching cset of the nearest domain ancestor. The* dom_cset provides access to the domain cgroup and its csses to* which domain level resource consumptions should be charged.)
967  kfree_rcu() - kfree an object after a grace period(cset, rcu_head)
调用者
名称描述
put_css_set_locked
cgroup_migrate_executegroup_taskset_migrate - migrate a taskset*@mgctx: migration context* Migrate tasks in @mgctx as setup by migration preparation functions.* This function fails iff one of the ->can_attach callbacks fails and
cgroup_migrate_finishgroup_migrate_finish - cleanup after attach*@mgctx: migration context* Undo cgroup_migrate_add_src() and cgroup_migrate_prepare_dst(). See* those functions for details.
css_task_iter_next_css_set
css_task_iter_advance_css_setss_task_iter_advance_css_set - advance a task itererator to the next css_set*@it: the iterator to advance* Advance @it to the next css_set to walk.
css_task_iter_endss_task_iter_end - finish task iteration*@it: the task iterator to finish* Finish task iteration started by css_task_iter_start().