函数逻辑报告 |
Source Code:kernel\cgroup\cgroup.c |
Create Date:2022-07-27 12:10:56 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:group_attach_task - attach a task or a whole threadgroup to a cgroup*@dst_cgrp: the cgroup to attach to*@leader: the task or the leader of the threadgroup to be attached*@threadgroup: attach the whole threadgroup?
函数原型:int cgroup_attach_task(struct cgroup *dst_cgrp, struct task_struct *leader, bool threadgroup)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct cgroup * | dst_cgrp | |
| struct task_struct * | leader | |
| bool | threadgroup |
| 2720 | DEFINE_CGROUP_MGCTX(mgctx) |
| 2729 | spin_lock_irq( & css_set_lock) |
| 2732 | 循环 |
| 2734 | 如果非threadgroup则退出 |
| 2738 | spin_unlock_irq( & css_set_lock) |
| 2750 | 返回:ret |
| 名称 | 描述 |
|---|---|
| cgroup_procs_write | |
| cgroup_threads_write | |
| cgroup_attach_task_all | group_attach_task_all - attach task 'tsk' to all cgroups of task 'from'*@from: attach to all cgroups of a given task*@tsk: the task to be attached |
| __cgroup1_procs_write |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |