函数逻辑报告 |
Source Code:kernel\cgroup\cgroup.c |
Create Date:2022-07-27 12:13:18 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:proc_cgroup_show()* - Print task's cgroup paths into seq_file, one line for each hierarchy* - Used for /proc/<pid>/cgroup.
函数原型:int proc_cgroup_show(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *tsk)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct seq_file * | m | |
struct pid_namespace * | ns | |
struct pid * | pid | |
struct task_struct * | tsk |
5794 | spin_lock_irq( & css_set_lock) |
5796 | rate across the hierarchies (root) |
5799 | count等于0 |
5804 | seq_printf(m, "%d:", Unique id for this hierarchy. ) |
5807 | 如果 The bitmask of subsystems attached to this hierarchy 按位与1左移ssid位则seq_printf(m, "%s%s", count++ ? "," : "", optional, initialized automatically during boot if not set ) |
5810 | 如果strlen - Find the length of a string*@s: The string to be sized则seq_printf(m, "%sname=%s", count ? "," : "", The name for this hierarchy - may be empty ) |
5815 | cgrp等于Return the cgroup for "task" from the given hierarchy. Must be* called with cgroup_mutex and css_set_lock held. |
5829 | 如果retval大于等于# chars in a path name including nul 则retval等于负ENAMETOOLONG |
5831 | 如果retval小于0则转到:out_unlock |
5835 | 否则 |
5845 | retval等于0 |
5846 | out_unlock : |
5847 | spin_unlock_irq( & css_set_lock) |
5850 | out : |
5851 | 返回:retval |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |