函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\resctrl\rdtgroup.c Create Date:2022-07-27 09:10:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:set uid and gid of rdtgroup dirs and files to that of the creator

函数原型:static int rdtgroup_kn_set_ugid(struct kernfs_node *kn)

返回类型:int

参数:

类型参数名称
struct kernfs_node *kn
191  struct iattr iattr = {ia_valid = ATTR_UID | ATTR_GID, ia_uid = current_fsuid(), ia_gid = current_fsgid(), }
195  如果uid_eq(ia_uid, GLOBAL_ROOT_UID)且gid_eq(ia_gid, GLOBAL_ROOT_GID)则返回:0
199  返回:kernfs_setattr(kn, & iattr)
调用者
名称描述
rdtgroup_add_file
rdtgroup_mkdir_info_resdir
rdtgroup_create_info_dir
mongroup_create_dir
mon_addfile
mkdir_mondata_subdir
mkdir_rdt_prepare