函数逻辑报告 | 
Source Code:kernel\cgroup\cgroup.c | 
Create Date:2022-07-27 12:09:27 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:ss_set_move_task - move a task from one css_set to another*@task: task being moved*@from_cset: css_set @task currently belongs to (may be NULL)*@to_cset: new css_set @task is being moved to (may be NULL)*@use_mg_tasks: move to @to_cset->mg_tasks instead
函数原型:static void css_set_move_task(struct task_struct *task, struct css_set *from_cset, struct css_set *to_cset, bool use_mg_tasks)
返回类型:void
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct task_struct * | task | |
| struct css_set * | from_cset | |
| struct css_set * | to_cset | |
| bool | use_mg_tasks | 
| 882 | lockdep_assert_held( & css_set_lock) | 
| 887 | 如果from_cset则 | 
| 888 | WARN_ON_ONCE(链表为空) | 
| 891 | 删除链表项并重新初始化 | 
| 894 | 否则 | 
| 895 | WARN_ON_ONCE(!链表为空) | 
| 898 | 如果to_cset则 | 
| 904 | WARN_ON_ONCE(任务标志 & Getting shut down ) | 
| 907 | 添加链表项 | 
| 名称 | 描述 | 
|---|---|
| cgroup_migrate_execute | 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 | 
| cgroup_post_fork | group_post_fork - called on a new task after adding it to the task list*@child: the task in question* Adds the task to the list running through its css_set if necessary and* call the subsystem fork() callbacks | 
| cgroup_exit | group_exit - detach cgroup from exiting task*@tsk: pointer to task_struct of exiting process* Description: Detach cgroup from @tsk. | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |