| Function report | 
| Source Code: kernel\cgroup\cgroup.c | Create Date:2022-07-28 11:09:01 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name: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
Proto:int cgroup_migrate(struct task_struct *leader, bool threadgroup, struct cgroup_mgctx *mgctx)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct task_struct * | leader | |
| bool | threadgroup | |
| struct cgroup_mgctx * | mgctx | 
| 2695 | spin_lock_irq( & css_set_lock) | 
| 2698 | Do | 
| 2700 | If Not threadgroup Then Break | 
| 2704 | spin_unlock_irq( & css_set_lock) | 
| Name | Describe | 
|---|---|
| cgroup_attach_task | 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? | 
| cgroup_transfer_tasks | 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 | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |