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