函数逻辑报告 |
Source Code:arch\x86\kernel\cpu\resctrl\rdtgroup.c |
Create Date:2022-07-27 09:12:07 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:mkdir_rdt_prepare
函数原型:static int mkdir_rdt_prepare(struct kernfs_node *parent_kn, struct kernfs_node *prgrp_kn, const char *name, umode_t mode, enum rdt_group_type rtype, struct rdtgroup **r)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct kernfs_node * | parent_kn | |
struct kernfs_node * | prgrp_kn | |
const char * | name | |
umode_t | mode | |
enum rdt_group_type | rtype | |
struct rdtgroup ** | r |
2653 | files等于0 |
2657 | 如果非prdtgrp则 |
2659 | 转到:out_unlock |
2662 | 如果rtype恒等于RDTMON_GROUP且mode恒等于RDT_MODE_PSEUDO_LOCKSETUP或mode恒等于RDT_MODE_PSEUDO_LOCKED的值则 |
2672 | 如果非rdtgrp则 |
2680 | 初始化链表头 |
2684 | 如果是错误则 |
2697 | kernfs_get(kn) |
2700 | 如果ret则 |
2701 | rdt_last_cmd_puts("kernfs perm error\n") |
2702 | 转到:out_destroy |
2705 | files等于RFTYPE_BASE按位或BIT(RF_CTRLSHIFT + rtype) |
2706 | ret等于rdtgroup_add_files(kn, files) |
2707 | 如果ret则 |
2708 | rdt_last_cmd_puts("kernfs fill error\n") |
2709 | 转到:out_destroy |
2712 | 如果rdt_mon_capable则 |
2713 | ret等于alloc_rmid() |
2714 | 如果ret小于0则 |
2715 | rdt_last_cmd_puts("Out of RMIDs\n") |
2716 | 转到:out_destroy |
2721 | 如果ret则 |
2722 | rdt_last_cmd_puts("kernfs subdir error\n") |
2723 | 转到:out_idfree |
2726 | kernfs_activate(kn) |
2731 | 返回:0 |
2733 | out_idfree : |
2735 | out_destroy : |
2736 | kernfs_remove(kn) |
2737 | out_free_rgrp : |
2738 | 释放内存 |
2739 | out_unlock : |
2740 | rdtgroup_kn_unlock(parent_kn) |
2741 | 返回:ret |
名称 | 描述 |
---|---|
rdtgroup_mkdir_mon | Create a monitor group under "mon_groups" directory of a control* and monitor group(ctrl_mon). This is a resource group* to monitor a subset of tasks and cpus in its parent ctrl_mon group. |
rdtgroup_mkdir_ctrl_mon | These are rdtgroups created under the root directory. Can be used* to allocate and monitor resources. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |