函数逻辑报告 |
Source Code:kernel\cgroup\cgroup.c |
Create Date:2022-07-27 12:10:24 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:cgroup_setup_root
函数原型:int cgroup_setup_root(struct cgroup_root *root, u16 ss_mask)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct cgroup_root * | root | |
u16 | ss_mask |
1950 | 如果ret则转到:cancel_ref |
1953 | ret等于cgroup_init_root_id(root) |
1954 | 如果ret则转到:cancel_ref |
1960 | kf_root等于kernfs_create_root(kf_sops, KERNFS_ROOT_CREATE_DEACTIVATED | KERNFS_ROOT_SUPPORT_EXPORTOP, root_cgrp) |
1964 | 如果是错误则 |
1966 | 转到:exit_root_id |
1968 | cgroup kernfs entry 等于 published fields |
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 | 如果ret则转到:destroy_root |
1976 | ret等于rebind_subsystems(root, ss_mask) |
1977 | 如果ret则转到:destroy_root |
1980 | ret等于cgroup_bpf_inherit(root_cgrp) |
1981 | WARN_ON_ONCE(ret) |
1983 | trace_cgroup_setup_root(root) |
1990 | 添加链表项 |
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 | 转到: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 | 返回:ret |
名称 | 描述 |
---|---|
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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |