函数逻辑报告 | 
Source Code:kernel\cgroup\cgroup.c | 
Create Date:2022-07-27 12:12:44 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:css_create
函数原型:static struct cgroup_subsys_state *css_create(struct cgroup *cgrp, struct cgroup_subsys *ss)
返回类型:struct cgroup_subsys_state
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct cgroup * | cgrp | |
| struct cgroup_subsys * | ss | 
| 5091 | parent等于cgroup_parent(cgrp) | 
| 5098 | css等于css_alloc(parent_css) | 
| 5104 | init_and_link_css(css, ss, cgrp) | 
| 5107 | 如果err则转到:err_free_css | 
| 5111 | 如果err小于0则转到:err_free_css | 
| 5113 | PI: Subsys-unique ID. 0 is unused and root is always 1. The* matching css can be looked up using css_from_id().等于err | 
| 5116 | 添加RCU链表项 | 
| 5117 | cgroup_idr_replace( & idr for css->id , css, PI: Subsys-unique ID. 0 is unused and root is always 1. The* matching css can be looked up using css_from_id().) | 
| 5120 | 如果err则转到:err_list_del | 
| 5125 | 打印警告信息("%s (%d) created nested cgroup for controller \"%s\" which has incomplete hierarchy support. Nested cgroups may change behavior in the future.\n", comm, pid, name) | 
| 5129 | warned_broken_hierarchy = true | 
| 5132 | 返回:css | 
| 5134 | err_list_del : | 
| 5135 | 删除不需要重新初始化的列表项 | 
| 5136 | err_free_css : | 
| 5137 | 删除不需要重新初始化的列表项 | 
| 5140 | 返回:错误号 | 
| 名称 | 描述 | 
|---|---|
| cgroup_apply_control_enable | group_apply_control_enable - enable or show csses according to control*@cgrp: root of the target subtree* Walk @cgrp's subtree and create new csses or make the existing ones* visible. A css is created invisible if it's being implicitly enabled | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |