函数逻辑报告 |
Source Code:kernel\cgroup\debug.c |
Create Date:2022-07-27 12:20:30 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:cgroup_css_links_read
函数原型:static int cgroup_css_links_read(struct seq_file *seq, void *v)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct seq_file * | seq | |
void * | v |
118 | dead_cnt等于0, extra_refs等于0, threaded_csets等于0 |
120 | spin_lock_irq( & css_set_lock) |
125 | count等于0 |
132 | seq_printf(seq, "css_set %pK", cset) |
134 | threaded_csets自加 |
137 | 如果非链表为空则 |
147 | 否则 |
148 | seq_printf(seq, " %d", refcnt) |
149 | 如果refcnt减rnal task count, protected by css_set_lock 大于0则 |
165 | 如果count自加小于等于MAX_TASKS_SHOWN_PER_CSS则seq_printf(seq, " task %d\n", task_pid_vnr(task)) |
171 | 如果count自加小于等于MAX_TASKS_SHOWN_PER_CSS则seq_printf(seq, " task %d\n", task_pid_vnr(task)) |
176 | 如果count大于MAX_TASKS_SHOWN_PER_CSS则seq_printf(seq, " ... (%d)\n", count - MAX_TASKS_SHOWN_PER_CSS) |
187 | spin_unlock_irq( & css_set_lock) |
189 | 如果非dead_cnt且非extra_refs且非threaded_csets则返回:0 |
193 | 如果threaded_csets则seq_printf(seq, "threaded css_sets = %d\n", threaded_csets) |
195 | 如果extra_refs则seq_printf(seq, "extra references = %d\n", extra_refs) |
197 | 如果dead_cnt则seq_printf(seq, "dead css_sets = %d\n", dead_cnt) |
200 | 返回:0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |