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

Name:set uid and gid of rdtgroup dirs and files to that of the creator

Proto:static int rdtgroup_kn_set_ugid(struct kernfs_node *kn)

Type:int

Parameter:

TypeParameterName
struct kernfs_node *kn
191  struct iattr iattr = {ia_valid = ATTR_UID | ATTR_GID, ia_uid = current_fsuid(), ia_gid = current_fsgid(), }
195  If uid_eq(ia_uid, GLOBAL_ROOT_UID) && gid_eq(ia_gid, GLOBAL_ROOT_GID) Then Return 0
199  Return kernfs_setattr(kn, & iattr)
Caller
NameDescribe
rdtgroup_add_file
rdtgroup_mkdir_info_resdir
rdtgroup_create_info_dir
mongroup_create_dir
mon_addfile
mkdir_mondata_subdir
mkdir_rdt_prepare