函数逻辑报告 |
Source Code:kernel\cgroup\cgroup-v1.c |
Create Date:2022-07-27 12:15:05 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:__cgroup1_procs_write
函数原型:static ssize_t __cgroup1_procs_write(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off, bool threadgroup)
返回类型:ssize_t
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| 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 | 如果ret则转到: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 |
| 520 | 如果ret则转到:out_finish |
| 525 | out_finish : |
| 527 | out_unlock : |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |