函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rdtgroup_rmdir

函数原型:static int rdtgroup_rmdir(struct kernfs_node *kn)

返回类型:int

参数:

类型参数名称
struct kernfs_node *kn
2975  parent_kn等于* Use kernfs_get_parent() and kernfs_name/path() instead of * accessing the following two fields directly. If the node is * never moved to a different parent, it is safe to access the * parent directly.
2978  ret等于0
2980  如果非zalloc_cpumask_var( & tmpmask, GFP_KERNEL)则返回:负ENOMEM
2983  rdtgrp等于rdtgroup_kn_lock_live(kn)
2984  如果非rdtgrp
2985  ret等于负EPERM
2986  转到:out
2996  如果type恒等于RDTCTRL_GROUPparent_kn恒等于kn
2997  如果mode恒等于RDT_MODE_PSEUDO_LOCKSETUPmode恒等于RDT_MODE_PSEUDO_LOCKED
3000  否则
3003  否则如果type恒等于RDTMON_GROUPWe allow creating mon groups only with in a directory called "mon_groups"* which is present in every ctrl_mon group. Check if this is a valid* "mon_groups" directory.* 1. The directory should be named "mon_groups".* 2
3005  ret等于rdtgroup_rmdir_mon(kn, rdtgrp, tmpmask)
3006  否则
3007  ret等于负EPERM
3010  out :
3011  rdtgroup_kn_unlock(kn)
3012  释放CPU掩码
3013  返回:ret