Function report |
Source Code:kernel\cgroup\cgroup.c |
Create Date:2022-07-28 11:09:31 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:group_enable_threaded - make @cgrp threaded*@cgrp: the target cgroup* Called when "threaded" is written to the cgroup.type interface file and* tries to make @cgrp threaded and join the parent's resource domain.
Proto:static int cgroup_enable_threaded(struct cgroup *cgrp)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct cgroup * | cgrp |
| 3324 | parent = cgroup_parent(cgrp) |
| 3333 | If cgroup_is_threaded(cgrp) Then Return 0 |
| 3347 | If Not a domain which isn't connected to the root w/o brekage can't be used || Not an @cgrp become a thread root? should always be true for a thread root Then Return -EOPNOTSUPP |
| 3357 | })) |
| 3357 | Else If dsct == cgrp || cgroup_is_threaded(dsct) Then |
| 3361 | ret = cgroup_apply_control(cgrp) |
| 3362 | If Not ret Then # of live threaded child cgroups ++ |
| 3365 | cgroup_finalize_control(cgrp, ret) |
| 3366 | Return ret |
| Name | Describe |
|---|---|
| cgroup_type_write |
| 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 |