函数逻辑报告 |
Source Code:kernel\cgroup\cgroup-v1.c |
Create Date:2022-07-27 12:15:14 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:groupstats_build - build and fill cgroupstats*@stats: cgroupstats to fill information into*@dentry: A dentry entry belonging to the cgroup for which stats have* been requested.* Build and fill cgroupstats so that taskstats can export it to user* space.
函数原型:int cgroupstats_build(struct cgroupstats *stats, struct dentry *dentry)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct cgroupstats * | stats | |
| struct dentry * | dentry |
| 692 | kn等于kernfs_node_from_dentry(dentry) |
| 698 | 如果s_type不等于cgroup_fs_type或非kn或kernfs_type(kn)不等于KERNFS_DIR则返回:负EINVAL |
| 711 | 如果非cgrp或cgroup_is_dead(cgrp)则 |
| 714 | 返回:负ENOENT |
| 722 | Number of tasks running 自加 |
| 723 | 退出 |
| 725 | Number of tasks sleeping 自加 |
| 726 | 退出 |
| 729 | 退出 |
| 730 | 当:任务状态恒等于TASK_STOPPED |
| 732 | 退出 |
| 733 | 默认 |
| 736 | 退出 |
| 742 | 返回:0 |
| 名称 | 描述 |
|---|---|
| cgroupstats_user_cmd |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |