| Function report | 
| Source Code: kernel\cgroup\cgroup.c | Create Date:2022-07-28 11:10:28 | 
| 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
Proto:static ssize_t cgroup_procs_write(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off)
Type:ssize_t
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct kernfs_open_file * | of | |
| char * | buf | |
| size_t | nbytes | |
| loff_t | off | 
| 4706 | task = cgroup_procs_write_start(buf, true, & locked) | 
| 4707 | ret = PTR_ERR_OR_ZERO(task) | 
| 4708 | If ret Then Go to out_unlock | 
| 4712 | spin_lock_irq( & css_set_lock) | 
| 4713 | src_cgrp = Return the cgroup for "task" from the given hierarchy. Must be* called with cgroup_mutex and css_set_lock held. | 
| 4714 | spin_unlock_irq( & css_set_lock) | 
| 4716 | ret = cgroup_procs_write_permission(src_cgrp, dst_cgrp, d_sb) | 
| 4718 | If ret Then Go to out_finish | 
| 4723 | out_finish : | 
| 4724 | cgroup_procs_write_finish(task, locked) | 
| 4725 | out_unlock : | 
| 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 |