函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cgroup_procs_write_permission

函数原型:static int cgroup_procs_write_permission(struct cgroup *src_cgrp, struct cgroup *dst_cgrp, struct super_block *sb)

返回类型:int

参数:

类型参数名称
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  当非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循环
4670  com_cgrp等于cgroup_parent(com_cgrp)
4673  inode等于kernfs_get_inode(sb, do not access any fields from outside cgroup core )
4674  如果非inode则返回:负ENOMEM
4677  ret等于inode_permission(inode, MAY_WRITE)
4678  放置一个索引节点
4679  如果ret则返回:ret
4686  如果 Hierarchy-specific flags 按位与CGRP_ROOT_NS_DELEGATE且非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或非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的值则返回:负ENOENT
4691  返回:0
调用者
名称描述
cgroup_procs_write
cgroup_threads_write