Function report |
Source Code:kernel\cgroup\cgroup-v1.c |
Create Date:2022-07-28 11:12:57 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__cgroup1_procs_write
Proto:static ssize_t __cgroup1_procs_write(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off, bool threadgroup)
Type:ssize_t
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct kernfs_open_file * | of | |
| char * | buf | |
| size_t | nbytes | |
| loff_t | off | |
| bool | threadgroup |
| 504 | task = cgroup_procs_write_start(buf, threadgroup, & locked) |
| 505 | ret = PTR_ERR_OR_ZERO(task) |
| 506 | If ret Then Go to out_unlock |
| 513 | cred = current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.() |
| 514 | tcred = get_task_cred - Get another task's objective credentials*@task: The task to query* Get the objective credentials of a task, pinning them so that they can't go* away |
| 515 | If Not uid_eq( effective UID of the task , GLOBAL_ROOT_UID) && Not uid_eq( effective UID of the task , real UID of the task ) && Not uid_eq( effective UID of the task , saved UID of the task ) Then ret = -EACCES |
| 520 | If ret Then Go to out_finish |
| 525 | out_finish : |
| 527 | out_unlock : |
| Name | Describe |
|---|---|
| cgroup1_procs_write | |
| cgroup1_tasks_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 |