Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:put_css_set_locked

Proto:void put_css_set_locked(struct css_set *cset)

Type:void

Parameter:

TypeParameterName
struct css_set *cset
939  lockdep_assert_held( & css_set_lock)
941  If Not _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 Then Return
944  WARN_ON_ONCE(!list_empty - tests whether a list is empty*@head: the list to test.)
948  deletes entry from list
949  ss_put - put a css reference*@css: target css* Put a reference obtained via css_get() and css_tryget_online().
951  hash_del - remove an object from a hashtable*@node: &struct hlist_node of the object to remove
952  1 for init_css_set --
955  deletes entry from list
956  deletes entry from list
957  If cgroup_parent(he cgroup and css_set this link associates ) Then cgroup_put(he cgroup and css_set this link associates )
959  kfree(link)
962  If css_set_threaded(cset) Then
963  deletes entry from list
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)
Caller
NameDescribe
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().