Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cgroup_procs_write_permission

Proto:static int cgroup_procs_write_permission(struct cgroup *src_cgrp, struct cgroup *dst_cgrp, struct super_block *sb)

Type:int

Parameter:

TypeParameterName
struct cgroup *src_cgrp
struct cgroup *dst_cgrp
struct super_block *sb
4661  ns = cgroup_ns
4662  com_cgrp = src_cgrp
4666  lockdep_assert_held( & cgroup_mutex is the master lock)
4669  When Not group_is_descendant - test ancestry*@cgrp: the cgroup to be tested*@ancestor: possible ancestor of @cgrp* Test whether @cgrp is a descendant of @ancestor. It also returns %true* if @cgrp == @ancestor. This function is safe to call as long as @cgrp cycle
4670  com_cgrp = cgroup_parent(com_cgrp)
4673  inode = kernfs_get_inode(sb, do not access any fields from outside cgroup core )
4674  If Not inode Then Return -ENOMEM
4677  ret = inode_permission(inode, MAY_WRITE)
4678  put an inode
4679  If ret Then Return ret
4686  If Hierarchy-specific flags & CGRP_ROOT_NS_DELEGATE && ( Not group_is_descendant - test ancestry*@cgrp: the cgroup to be tested*@ancestor: possible ancestor of @cgrp* Test whether @cgrp is a descendant of @ancestor. It also returns %true* if @cgrp == @ancestor. This function is safe to call as long as @cgrp || Not group_is_descendant - test ancestry*@cgrp: the cgroup to be tested*@ancestor: possible ancestor of @cgrp* Test whether @cgrp is a descendant of @ancestor. It also returns %true* if @cgrp == @ancestor. This function is safe to call as long as @cgrp ) Then Return -ENOENT
4691  Return 0
Caller
NameDescribe
cgroup_procs_write
cgroup_threads_write