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

Name:mongroup_create_dir

Proto:static int mongroup_create_dir(struct kernfs_node *parent_kn, struct rdtgroup *prgrp, char *name, struct kernfs_node **dest_kn)

Type:int

Parameter:

TypeParameterName
struct kernfs_node *parent_kn
struct rdtgroup *prgrp
char *name
struct kernfs_node **dest_kn
1691  kn = kernfs_create_dir(parent_kn, name, mode, prgrp)
1692  If IS_ERR(kn) Then Return PTR_ERR(kn)
1695  If dest_kn Then dest_kn = kn
1702  kernfs_get(kn)
1704  ret = set uid and gid of rdtgroup dirs and files to that of the creator
1705  If ret Then Go to out_destroy
1708  kernfs_activate(kn)
1710  Return 0
1712  out_destroy :
1713  kernfs_remove(kn)
1714  Return ret
Caller
NameDescribe
rdt_get_tree
mkdir_mondata_allThis creates a directory mon_data which contains the monitored data
rdtgroup_mkdir_ctrl_monThese are rdtgroups created under the root directory. Can be used* to allocate and monitor resources.