Function report | 
Source Code:kernel\cgroup\cgroup.c | 
Create Date:2022-07-28 11:09:22 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:cgroup_vet_subtree_control_enable
Proto:static int cgroup_vet_subtree_control_enable(struct cgroup *cgrp, u16 enable)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct cgroup * | cgrp | |
| u16 | enable | 
| 3182 | If Not enable Then Return 0 | 
| 3186 | If Not a domain which isn't connected to the root w/o brekage can't be used Then Return -EOPNOTSUPP | 
| 3190 | If an @cgrp host both domain and threaded children? Then Return 0 | 
| 3193 | If domain_enable Then | 
| 3195 | If s @cgrp root of a threaded subtree? || cgroup_is_threaded(cgrp) Then Return -EOPNOTSUPP | 
| 3197 | Else | 
| 3203 | If an @cgrp become a thread root? should always be true for a thread root || cgroup_is_threaded(cgrp) Then Return 0 | 
| 3211 | If cgroup_has_tasks(cgrp) Then Return -EBUSY | 
| 3214 | Return 0 | 
| Name | Describe | 
|---|---|
| cgroup_subtree_control_write | hange the enabled child controllers for a cgroup in the default hierarchy | 
| 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  |