Function report |
Source Code:kernel\cgroup\cgroup.c |
Create Date:2022-07-28 11:09:05 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:cgroup_procs_write_start
Proto:struct task_struct *cgroup_procs_write_start(char *buf, bool threadgroup, bool *locked)__acquires(&cgroup_threadgroup_rwsem)
Type:struct task_struct
Parameter:
| Type | Parameter | Name |
|---|---|---|
| char * | buf | |
| bool | threadgroup | |
| bool * | locked |
| 2772 | If pid || threadgroup Then |
| 2774 | * locked = true |
| 2775 | Else |
| 2776 | * locked = false |
| 2780 | If pid Then |
| 2786 | Else |
| 2787 | tsk = current process |
| 2790 | If threadgroup Then tsk = group_leader |
| 2801 | Go to out_unlock_threadgroup |
| 2804 | get_task_struct(tsk) |
| 2805 | Go to out_unlock_rcu |
| 2807 | out_unlock_threadgroup : |
| 2808 | If locked Then |
| 2809 | percpu_up_write( & cgroup_threadgroup_rwsem) |
| 2810 | * locked = false |
| 2812 | out_unlock_rcu : |
| 2814 | Return tsk |
| Name | Describe |
|---|---|
| cgroup_procs_write | |
| cgroup_threads_write | |
| __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 |