函数逻辑报告

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:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mkdir_mondata_subdir

函数原型:static int mkdir_mondata_subdir(struct kernfs_node *parent_kn, struct rdt_domain *d, struct rdt_resource *r, struct rdtgroup *prgrp)

返回类型:int

参数:

类型参数名称
struct kernfs_node *parent_kn
struct rdt_domain *d
struct rdt_resource *r
struct rdtgroup *prgrp
2348  输出格式化串
2350  kn等于kernfs_create_dir(parent_kn, name, mode, prgrp)
2351  如果是错误则返回:错误
2358  kernfs_get(kn)
2359  ret等于set uid and gid of rdtgroup dirs and files to that of the creator
2360  如果ret则转到:out_destroy
2363  如果WARN_ON(链表为空)则
2364  ret等于负EPERM
2365  转到:out_destroy
2368  rid等于rid
2369  domid等于id
2371  evtid等于evtid
2372  ret等于mon_addfile(kn, name, priv)
2373  如果ret则转到:out_destroy
2376  如果is_mbm_event(evtid)则mon_event_read( & rr, d, prgrp, evtid, true)
2379  kernfs_activate(kn)
2380  返回:0
2382  out_destroy :
2383  kernfs_remove(kn)
2384  返回:ret
调用者
名称描述
mkdir_mondata_subdir_allrdtgrpAdd all subdirectories of mon_data for "ctrl_mon" groups* and "monitor" groups with given domain id.
mkdir_mondata_subdir_alldom