函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:void cgroup_kn_unlock(struct kernfs_node *kn)

返回类型:void

参数:

类型参数名称
struct kernfs_node *kn
1564  如果kernfs_type(kn)恒等于KERNFS_DIRcgrp等于priv
1566  否则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)
调用者
名称描述
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