函数逻辑报告

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

函数名称:mongroup_create_dir

函数原型:static int mongroup_create_dir(struct kernfs_node *parent_kn, struct rdtgroup *prgrp, char *name, struct kernfs_node **dest_kn)

返回类型:int

参数:

类型参数名称
struct kernfs_node *parent_kn
struct rdtgroup *prgrp
char *name
struct kernfs_node **dest_kn
1691  kn等于kernfs_create_dir(parent_kn, name, mode, prgrp)
1692  如果是错误则返回:错误
1695  如果dest_kndest_kn等于kn
1702  kernfs_get(kn)
1704  ret等于set uid and gid of rdtgroup dirs and files to that of the creator
1705  如果ret则转到:out_destroy
1708  kernfs_activate(kn)
1710  返回:0
1712  out_destroy :
1713  kernfs_remove(kn)
1714  返回:ret
调用者
名称描述
rdt_get_tree
mkdir_mondata_allThis creates a directory mon_data which contains the monitored data
rdtgroup_mkdir_ctrl_monThese are rdtgroups created under the root directory. Can be used* to allocate and monitor resources.