函数逻辑报告 |
Source Code:kernel\cgroup\cgroup-v1.c |
Create Date:2022-07-27 12:15:38 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:The guts of cgroup1 mount - find or create cgroup_root to use
函数原型:static int cgroup1_root_to_use(struct fs_context *fc)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct fs_context * | fc |
1115 | ctx等于cgroup_fc2context(fc) |
1121 | ret等于check_cgroupfs_options(fc) |
1142 | rate across the hierarchies (root) |
1143 | bool name_match = false |
1145 | 如果root恒等于The default hierarchy, reserved for the subsystems that are otherwise* unattached - it never has more than a single cgroup, and all tasks are* part of that cgroup.则继续下一循环 |
1153 | 如果Hierarchy name 则 |
1154 | 如果字符串比较则继续下一循环 |
1156 | name_match = true |
1165 | 如果非name_match则继续下一循环 |
1167 | 返回:负EBUSY |
1170 | 如果 Hierarchy-specific flags 按位异或CGRP_ROOT_* flags 则打印警告信息("new mount options do not match the existing superblock, will be ignored\n") |
1174 | 返回:0 |
1182 | 如果非Selected subsystems 且非User explicitly requested empty subsystem 则返回:cg_invalf(fc, "cgroup1: No subsys list or none specified") |
1186 | 如果ns不等于cgroup namespace for init task 则返回:负EPERM |
1194 | init_cgroup_root(ctx) |
1196 | ret等于cgroup_setup_root(root, Selected subsystems ) |
1197 | 如果ret则cgroup_free_root(root) |
1199 | 返回:ret |
名称 | 描述 |
---|---|
cgroup1_get_tree |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |