Function report |
Source Code:kernel\cgroup\cgroup.c |
Create Date:2022-07-28 11:09:27 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:hange the enabled child controllers for a cgroup in the default hierarchy
Proto:static ssize_t cgroup_subtree_control_write(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off)
Type:ssize_t
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct kernfs_open_file * | of | |
| char * | buf | |
| size_t | nbytes | |
| loff_t | off |
| 3234 | If tok[0] == '\0' Then Continue |
| 3236 | Do |
| 3236 | If Not CGROUP_SUBSYS_COUNT Then |
| 3236 | ssid = 0 |
| 3236 | Break |
| 3236 | When ssid < CGROUP_SUBSYS_COUNT cycle |
| 3236 | ss = cgroup_subsys[ssid] |
| 3241 | If tok == '+' Then |
| 3244 | Else if tok == '-' Then |
| 3247 | Else |
| 3248 | Return -EINVAL |
| 3250 | Break |
| 3251 | When (false) cycle |
| 3252 | If ssid == CGROUP_SUBSYS_COUNT Then Return -EINVAL |
| 3281 | Go to out_unlock |
| 3288 | ret = 0 |
| 3289 | Go to out_unlock |
| 3292 | ret = cgroup_vet_subtree_control_enable(cgrp, enable) |
| 3293 | If ret Then Go to out_unlock |
| 3302 | ret = cgroup_apply_control(cgrp) |
| 3303 | cgroup_finalize_control(cgrp, ret) |
| 3304 | If ret Then Go to out_unlock |
| 3307 | kernfs_activate( cgroup kernfs entry ) |
| 3308 | out_unlock : |
| 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 |