Function report |
Source Code:kernel\cgroup\cgroup.c |
Create Date:2022-07-28 11:08:33 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:cgroup_setup_root
Proto:int cgroup_setup_root(struct cgroup_root *root, u16 ss_mask)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct cgroup_root * | root | |
| u16 | ss_mask |
| 1950 | If ret Then Go to cancel_ref |
| 1953 | ret = cgroup_init_root_id(root) |
| 1954 | If ret Then Go to cancel_ref |
| 1960 | kf_root = kernfs_create_root(kf_sops, KERNFS_ROOT_CREATE_DEACTIVATED | KERNFS_ROOT_SUPPORT_EXPORTOP, root_cgrp) |
| 1966 | Go to exit_root_id |
| 1969 | WARN_ON_ONCE(rns ino associated with a cgroup != 1) |
| 1972 | ret = ss_populate_dir - create subsys files in a cgroup directory*@css: target css* On failure, no file is added. |
| 1973 | If ret Then Go to destroy_root |
| 1976 | ret = rebind_subsystems(root, ss_mask) |
| 1977 | If ret Then Go to destroy_root |
| 1980 | ret = cgroup_bpf_inherit(root_cgrp) |
| 1981 | WARN_ON_ONCE(ret) |
| 1983 | trace_cgroup_setup_root(root) |
| 1991 | cgroup_root_count++ |
| 1997 | spin_lock_irq( & css_set_lock) |
| 2003 | spin_unlock_irq( & css_set_lock) |
| 2008 | kernfs_activate( cgroup kernfs entry ) |
| 2009 | ret = 0 |
| 2010 | Go to out |
| 2012 | destroy_root : |
| 2013 | kernfs_destroy_root(kf_root) |
| 2014 | kf_root = NULL |
| 2015 | exit_root_id : |
| 2016 | cgroup_exit_root_id(root) |
| 2017 | cancel_ref : |
| 2019 | out : |
| 2020 | free_cgrp_cset_links( & tmp_links) |
| 2021 | Return ret |
| Name | Describe |
|---|---|
| cgroup_init | group_init - cgroup initialization* Register cgroup filesystem and /proc file, and initialize* any subsystems that didn't request early init. |
| cgroup1_root_to_use | The guts of cgroup1 mount - find or create cgroup_root to use |
| 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 |