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

Name:mon_addfile

Proto:static int mon_addfile(struct kernfs_node *parent_kn, const char *name, void *priv)

Type:int

Parameter:

TypeParameterName
struct kernfs_node *parent_kn
const char *name
void *priv
2299  ret = 0
2301  kn = __kernfs_create_file(parent_kn, name, 0444, GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, 0, & kf_mondata_ops, priv, NULL, NULL)
2304  If IS_ERR(kn) Then Return PTR_ERR(kn)
2307  ret = set uid and gid of rdtgroup dirs and files to that of the creator
2308  If ret Then
2309  kernfs_remove(kn)
2310  Return ret
2313  Return ret
Caller
NameDescribe
mkdir_mondata_subdir