Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
struct kernfs_node * | parent_kn | |
struct kernfs_node * | prgrp_kn | |
const char * | name | |
umode_t | mode |
2795 | ret = mkdir_rdt_prepare(parent_kn, prgrp_kn, name, mode, RDTCTRL_GROUP, & rdtgrp) |
2801 | ret = closid_alloc() |
2802 | If ret < 0 Then |
2803 | rdt_last_cmd_puts("Out of CLOSIDs\n") |
2804 | Go to out_common_fail |
2807 | ret = 0 |
2811 | If ret < 0 Then Go to out_id_free |
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 : |
2832 | out_id_free : |
2833 | closid_free(closid) |
2834 | out_common_fail : |
2836 | out_unlock : |
2837 | rdtgroup_kn_unlock(parent_kn) |
2838 | Return ret |
Name | Describe |
---|---|
rdtgroup_mkdir |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |