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:11:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:rdtgroup_create_info_dir

Proto:static int rdtgroup_create_info_dir(struct kernfs_node *parent_kn)

Type:int

Parameter:

TypeParameterName
struct kernfs_node *parent_kn
1640  Kernel fs node for "info" directory under root = kernfs_create_dir(parent_kn, "info", mode, NULL)
1641  If IS_ERR(Kernel fs node for "info" directory under root ) Then Return PTR_ERR(Kernel fs node for "info" directory under root )
1643  kernfs_get(Kernel fs node for "info" directory under root )
1645  ret = rdtgroup_add_files(Kernel fs node for "info" directory under root , RF_TOP_INFO)
1646  If ret Then Go to out_destroy
1650  fflags = fflags | RF_CTRL_INFO
1651  ret = rdtgroup_mkdir_info_resdir(r, name, fflags)
1652  If ret Then Go to out_destroy
1657  fflags = fflags | RF_MON_INFO
1658  sprintf(name, "%s_MON", name)
1659  ret = rdtgroup_mkdir_info_resdir(r, name, fflags)
1660  If ret Then Go to out_destroy
1668  kernfs_get(Kernel fs node for "info" directory under root )
1670  ret = set uid and gid of rdtgroup dirs and files to that of the creator
1671  If ret Then Go to out_destroy
1674  kernfs_activate(Kernel fs node for "info" directory under root )
1676  Return 0
1678  out_destroy :
1679  kernfs_remove(Kernel fs node for "info" directory under root )
1680  Return ret
Caller
NameDescribe
rdt_get_tree