函数逻辑报告 | 
Source Code:kernel\cgroup\cgroup.c | 
Create Date:2022-07-27 12:10:35 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:ask_cgroup_path - cgroup path of a task in the first cgroup hierarchy*@task: target task*@buf: the buffer to write the path into*@buflen: the length of the buffer* Determine @task's cgroup on the first (the one with the lowest non-zero
函数原型:int task_cgroup_path(struct task_struct *task, char *buf, size_t buflen)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct task_struct * | task | |
| char * | buf | |
| size_t | buflen | 
| 2258 | hierarchy_id等于1 | 
| 2262 | spin_lock_irq( & css_set_lock) | 
| 2266 | 如果root则 | 
| 2267 | cgrp等于Return the cgroup for "task" from the given hierarchy. Must be* called with cgroup_mutex and css_set_lock held. | 
| 2268 | ret等于cgroup_path_ns_locked(cgrp, buf, buflen, & cgroup namespace for init task ) | 
| 2269 | 否则 | 
| 2274 | spin_unlock_irq( & css_set_lock) | 
| 2276 | 返回:ret | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |