Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:rdtgroup_rmdir

Proto:static int rdtgroup_rmdir(struct kernfs_node *kn)

Type:int

Parameter:

TypeParameterName
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  If Not zalloc_cpumask_var( & tmpmask, GFP_KERNEL) Then Return -ENOMEM
2983  rdtgrp = rdtgroup_kn_lock_live(kn)
2984  If Not rdtgrp Then
2985  ret = -EPERM
2986  Go to out
2996  If type == RDTCTRL_GROUP && parent_kn == kn Then
3000  Else
3003  Else if type == RDTMON_GROUP && We 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 Then
3005  ret = rdtgroup_rmdir_mon(kn, rdtgrp, tmpmask)
3006  Else
3007  ret = -EPERM
3010  out :
3011  rdtgroup_kn_unlock(kn)
3012  free_cpumask_var(tmpmask)
3013  Return ret