函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mon_addfile

函数原型:static int mon_addfile(struct kernfs_node *parent_kn, const char *name, void *priv)

返回类型:int

参数:

类型参数名称
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  如果是错误则返回:错误
2307  ret等于set uid and gid of rdtgroup dirs and files to that of the creator
2308  如果ret
2309  kernfs_remove(kn)
2310  返回:ret
2313  返回:ret
调用者
名称描述
mkdir_mondata_subdir