Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:group_kn_unlock - unlocking helper for cgroup kernfs methods*@kn: the kernfs_node being serviced* This helper undoes cgroup_kn_lock_live() and should be invoked before* the method finishes if locking succeeded

Proto:void cgroup_kn_unlock(struct kernfs_node *kn)

Type:void

Parameter:

TypeParameterName
struct kernfs_node *kn
1564  If kernfs_type(kn) == KERNFS_DIR Then cgrp = priv
1566  Else cgrp = priv
1569  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.
1571  kernfs_unbreak_active_protection(kn)
1572  cgroup_put(cgrp)
Caller
NameDescribe
cgroup_kn_lock_livegroup_kn_lock_live - locking helper for cgroup kernfs methods*@kn: the kernfs_node being serviced*@drain_offline: perform offline draining on the cgroup* This helper is to be used by a cgroup kernfs method currently servicing*@kn
cgroup_subtree_control_writehange the enabled child controllers for a cgroup in the default hierarchy
cgroup_type_write
cgroup_max_descendants_write
cgroup_max_depth_write
cgroup_freeze_write
cgroup_procs_write
cgroup_threads_write
cgroup_mkdir
cgroup_rmdirput the base reference
__cgroup1_procs_write
cgroup_release_agent_write
current_css_set_read
cgroup_subsys_states_read
cgroup_masks_read