Function report |
Source Code:kernel\cgroup\cgroup.c |
Create Date:2022-07-28 11:11:14 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:group_init - cgroup initialization* Register cgroup filesystem and /proc file, and initialize* any subsystems that didn't request early init.
Proto:int __init cgroup_init(void)
Type:int
Parameter:Nothing
5649 | BUG_ON(cgroup_init_cftypes(NULL, cgroup-v1.c)) |
5651 | cgroup_rstat_boot() |
5659 | get_user_ns(user_ns) |
5675 | If early_init Then |
5682 | Else |
5683 | cgroup_init_subsys(ss, false) |
5694 | If cgroup_disable_mask & 1 << ssid Then |
5698 | Continue |
5705 | The bitmask of subsystems attached to this hierarchy |= 1 << the following two fields are initialized automtically during boot |
5712 | Else if Not for the default hierarchy Then some controllers are not supported in the default hierarchy |= 1 << the following two fields are initialized automtically during boot |
5718 | If for the default hierarchy == for the legacy hierarchies Then |
5720 | Else |
5725 | If bind Then bind(Set of subsystem states, one for each subsystem. This array is* immutable after creation apart from the init_css_set during* subsystem registration (at boot time).[ssid]) |
5738 | WARN_ON(sysfs_create_mount_point(/sys/fs , "cgroup")) |
5739 | WARN_ON(register_filesystem( & cgroup_fs_type)) |
5740 | WARN_ON(register_filesystem( & cgroup2_fs_type)) |
5741 | WARN_ON(!proc_create_single("cgroups", 0, NULL, proc_cgroupstats_show)) |
5746 | Return 0 |
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 |