函数逻辑报告 |
Source Code:kernel\cgroup\cgroup.c |
Create Date:2022-07-27 12:10:46 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:group_taskset_migrate - migrate a taskset*@mgctx: migration context* Migrate tasks in @mgctx as setup by migration preparation functions.* This function fails iff one of the ->can_attach callbacks fails and
函数原型:static int cgroup_migrate_execute(struct cgroup_mgctx *mgctx)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct cgroup_mgctx * | mgctx |
| 2399 | 如果he number of tasks in the set 则 |
| 2400 | 循环 |
| 2400 | 如果非CGROUP_SUBSYS_COUNT则 |
| 2400 | 以ssid小于CGROUP_SUBSYS_COUNT循环 |
| 2400 | ss等于cgroup_subsys[ssid] |
| 2401 | 如果can_attach则 |
| 2409 | 当(false)循环 |
| 2417 | spin_lock_irq( & css_set_lock) |
| 2420 | from_cset等于获得任务的css_set |
| 2421 | to_cset等于mg_dst_cset |
| 2431 | cgroup_freezer_migrate_task(task, he default cgroup associated with this css_set , he default cgroup associated with this css_set ) |
| 2433 | put_css_set_locked(from_cset) |
| 2437 | spin_unlock_irq( & css_set_lock) |
| 2446 | 如果he number of tasks in the set 则 |
| 2447 | 循环 |
| 2447 | 如果非CGROUP_SUBSYS_COUNT则 |
| 2447 | 以ssid小于CGROUP_SUBSYS_COUNT循环 |
| 2447 | ss等于cgroup_subsys[ssid] |
| 2448 | 如果attach则 |
| 2452 | 当(false)循环 |
| 2455 | ret等于0 |
| 2456 | 转到:out_release_tset |
| 2458 | out_cancel_attach : |
| 2459 | 如果he number of tasks in the set 则 |
| 2460 | 循环 |
| 2460 | 如果非CGROUP_SUBSYS_COUNT则 |
| 2460 | 以ssid小于CGROUP_SUBSYS_COUNT循环 |
| 2460 | ss等于cgroup_subsys[ssid] |
| 2467 | 当(false)循环 |
| 2469 | out_release_tset : |
| 2470 | spin_lock_irq( & css_set_lock) |
| 2471 | 加入二个链表项并重新初始化 |
| 2473 | 加入二个链表项并重新初始化 |
| 2474 | 删除链表项并重新初始化 |
| 2476 | spin_unlock_irq( & css_set_lock) |
| 2483 | he number of tasks in the set 等于0 |
| 2485 | 返回:ret |
| 名称 | 描述 |
|---|---|
| cgroup_migrate | group_migrate - migrate a process or task to a cgroup*@leader: the leader of the process or the task to migrate*@threadgroup: whether @leader points to the whole process or a single task*@mgctx: migration context |
| cgroup_update_dfl_csses | group_update_dfl_csses - update css assoc of a subtree in default hierarchy*@cgrp: root of the subtree to update csses for*@cgrp's control masks have changed and its subtree's css associations* need to be updated accordingly |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |