Function report |
Source Code:kernel\cgroup\cgroup.c |
Create Date:2022-07-28 11:08:44 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:int task_cgroup_path(struct task_struct *task, char *buf, size_t buflen)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct task_struct * | task | |
| char * | buf | |
| size_t | buflen |
| 2258 | hierarchy_id = 1 |
| 2262 | spin_lock_irq( & css_set_lock) |
| 2266 | If root Then |
| 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 | Else |
| 2274 | spin_unlock_irq( & css_set_lock) |
| 2276 | Return ret |
| 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 |