函数逻辑报告 |
Source Code:kernel\cgroup\cgroup-v1.c |
Create Date:2022-07-27 12:14:42 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:group_attach_task_all - attach task 'tsk' to all cgroups of task 'from'*@from: attach to all cgroups of a given task*@tsk: the task to be attached
函数原型:int cgroup_attach_task_all(struct task_struct *from, struct task_struct *tsk)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct task_struct * | from | |
struct task_struct * | tsk |
62 | retval等于0 |
69 | 如果root恒等于The default hierarchy, reserved for the subsystems that are otherwise* unattached - it never has more than a single cgroup, and all tasks are* part of that cgroup.则继续下一循环 |
72 | spin_lock_irq( & css_set_lock) |
73 | from_cgrp等于Return the cgroup for "task" from the given hierarchy. Must be* called with cgroup_mutex and css_set_lock held. |
74 | spin_unlock_irq( & css_set_lock) |
83 | 返回:retval |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |