Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\resctrl\rdtgroup.c Create Date:2022-07-28 08:12:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:These are rdtgroups created under the root directory. Can be used* to allocate and monitor resources.

Proto:static int rdtgroup_mkdir_ctrl_mon(struct kernfs_node *parent_kn, struct kernfs_node *prgrp_kn, const char *name, umode_t mode)

Type:int

Parameter:

TypeParameterName
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  If ret Then Return ret
2800  kn = kn
2801  ret = closid_alloc()
2802  If ret < 0 Then
2803  rdt_last_cmd_puts("Out of CLOSIDs\n")
2804  Go to out_common_fail
2806  closid = ret
2807  ret = 0
2809  closid = closid
2810  ret = Initialize the RDT group's allocations.
2811  If ret < 0 Then Go to out_id_free
2814  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
2816  If rdt_mon_capable Then
2821  ret = mongroup_create_dir(kn, rdtgrp, "mon_groups", NULL)
2822  If ret Then
2823  rdt_last_cmd_puts("kernfs subdir error\n")
2824  Go to out_del_list
2828  Go to out_unlock
2830  out_del_list :
2831  deletes entry from list
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  Return ret
Caller
NameDescribe
rdtgroup_mkdir