函数逻辑报告 |
Source Code:kernel\cgroup\cgroup-v1.c |
Create Date:2022-07-27 12:14:46 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:group_trasnsfer_tasks - move tasks from one cgroup to another*@to: cgroup to which the tasks will be moved*@from: cgroup in which the tasks currently reside* Locking rules between cgroup_post_fork() and the migration path* guarantee that, if a task is
函数原型:int cgroup_transfer_tasks(struct cgroup *to, struct cgroup *from)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct cgroup * | to | |
| struct cgroup * | from |
| 100 | DEFINE_CGROUP_MGCTX(mgctx) |
| 118 | spin_lock_irq( & css_set_lock) |
| 121 | spin_unlock_irq( & css_set_lock) |
| 131 | 循环 |
| 134 | 循环 |
| 136 | 当task且任务标志按位与Getting shut down 循环 |
| 138 | 如果task则get_task_struct(task) |
| 142 | 如果task则 |
| 144 | 如果非ret则cgroup_path() takes a spin lock(transfer_tasks, to, task, false) |
| 146 | put_task_struct(task) |
| 149 | out_err : |
| 153 | 返回:ret |
| 名称 | 描述 |
|---|---|
| remove_tasks_in_empty_cpuset | If CPU and/or memory hotplug handlers, below, unplug any CPUs* or memory nodes, we need to walk over the cpuset hierarchy,* removing that CPU or node from all cpusets. If this removes the* last CPU or node from a cpuset, then move the tasks in the empty |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |