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

Name:rdtgroup_add_file

Proto:static int rdtgroup_add_file(struct kernfs_node *parent_kn, struct rftype *rft)

Type:int

Parameter:

TypeParameterName
struct kernfs_node *parent_kn
struct rftype *rft
207  kn = __kernfs_create_file(parent_kn, name, mode, GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, 0, kf_ops, rft, NULL, NULL)
210  If IS_ERR(kn) Then Return PTR_ERR(kn)
213  ret = set uid and gid of rdtgroup dirs and files to that of the creator
214  If ret Then
215  kernfs_remove(kn)
216  Return ret
219  Return 0
Caller
NameDescribe
rdtgroup_add_files