函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:These are rdtgroups created under the root directory. Can be used* to allocate and monitor resources.

函数原型:static int rdtgroup_mkdir_ctrl_mon(struct kernfs_node *parent_kn, struct kernfs_node *prgrp_kn, const char *name, umode_t mode)

返回类型:int

参数:

类型参数名称
struct kernfs_node *parent_kn
struct kernfs_node *prgrp_kn
const char *name
umode_tmode
2795  ret等于mkdir_rdt_prepare(parent_kn, prgrp_kn, name, mode, RDTCTRL_GROUP, & rdtgrp)
2797  如果ret则返回:ret
2800  kn等于kn
2801  ret等于closid_alloc()
2802  如果ret小于0则
2803  rdt_last_cmd_puts("Out of CLOSIDs\n")
2804  转到:out_common_fail
2806  closid等于ret
2807  ret等于0
2809  closid等于closid
2810  ret等于Initialize the RDT group's allocations.
2811  如果ret小于0则转到:out_id_free
2814  添加链表项
2816  如果rdt_mon_capable
2821  ret等于mongroup_create_dir(kn, rdtgrp, "mon_groups", NULL)
2822  如果ret
2823  rdt_last_cmd_puts("kernfs subdir error\n")
2824  转到:out_del_list
2828  转到:out_unlock
2830  out_del_list :
2831  删除链表项
2832  out_id_free :
2833  closid_free(closid)
2834  out_common_fail :
2835  mkdir_rdt_prepare_clean(rdtgrp)
2836  out_unlock :
2837  rdtgroup_kn_unlock(parent_kn)
2838  返回:ret
调用者
名称描述
rdtgroup_mkdir