Function report |
Source Code:kernel\cgroup\debug.c |
Create Date:2022-07-28 11:18:01 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:cgroup_css_links_read
Proto:static int cgroup_css_links_read(struct seq_file *seq, void *v)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
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++ |
147 | Else |
148 | seq_printf(seq, " %d", refcnt) |
149 | If refcnt - rnal task count, protected by css_set_lock > 0 Then |
152 | seq_printf(seq, " +%d", extra) |
157 | If cset == The default css_set - used by init and its children prior to any* hierarchies being mounted Then extra-- |
159 | extra_refs += extra |
165 | If count++ <= MAX_TASKS_SHOWN_PER_CSS Then seq_printf(seq, " task %d\n", task_pid_vnr(task)) |
171 | If count++ <= MAX_TASKS_SHOWN_PER_CSS Then seq_printf(seq, " task %d\n", task_pid_vnr(task)) |
176 | If count > MAX_TASKS_SHOWN_PER_CSS Then seq_printf(seq, " ... (%d)\n", count - MAX_TASKS_SHOWN_PER_CSS) |
180 | If dead and being drained, ignore for migration Then |
187 | spin_unlock_irq( & css_set_lock) |
189 | If Not dead_cnt && Not extra_refs && Not threaded_csets Then Return 0 |
193 | If threaded_csets Then seq_printf(seq, "threaded css_sets = %d\n", threaded_csets) |
195 | If extra_refs Then seq_printf(seq, "extra references = %d\n", extra_refs) |
197 | If dead_cnt Then seq_printf(seq, "dead css_sets = %d\n", dead_cnt) |
200 | Return 0 |
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 |