Function report |
Source Code:kernel\cgroup\cgroup.c |
Create Date:2022-07-28 11:09:55 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:cgroup_addrm_files
Proto:static int cgroup_addrm_files(struct cgroup_subsys_state *css, struct cgroup *cgrp, struct cftype cfts[], bool is_add)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct cgroup_subsys_state * | css | |
struct cgroup * | cgrp | |
struct cftype | cfts | |
bool | is_add |
3866 | ret = 0 |
3870 | restart : |
3877 | If CFTYPE_* flags & CFTYPE_NOT_ON_ROOT && Not cgroup_parent(cgrp) Then Continue |
3879 | If CFTYPE_* flags & CFTYPE_ONLY_ON_ROOT && cgroup_parent(cgrp) Then Continue |
3881 | If CFTYPE_* flags & CFTYPE_DEBUG && Not cgroup_debug Then Continue |
3883 | If is_add Then |
3892 | Else |
3893 | cgroup_rm_file(cgrp, cft) |
3896 | Return ret |
Name | Describe |
---|---|
css_clear_dir | ss_clear_dir - remove subsys files in a cgroup directory*@css: taget css |
css_populate_dir | ss_populate_dir - create subsys files in a cgroup directory*@css: target css* On failure, no file is added. |
cgroup_apply_cftypes |
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 |