Function report |
Source Code:kernel\cgroup\cgroup.c |
Create Date:2022-07-28 11:09:03 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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?
Proto:int cgroup_attach_task(struct cgroup *dst_cgrp, struct task_struct *leader, bool threadgroup)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct cgroup * | dst_cgrp | |
struct task_struct * | leader | |
bool | threadgroup |
2720 | DEFINE_CGROUP_MGCTX(mgctx) |
2729 | spin_lock_irq( & css_set_lock) |
2732 | Do |
2734 | If Not threadgroup Then Break |
2738 | spin_unlock_irq( & css_set_lock) |
2747 | If Not ret Then cgroup_path() takes a spin lock(attach_task, dst_cgrp, leader, threadgroup) |
2750 | Return ret |
Name | Describe |
---|---|
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 |
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 |