函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cgroup\debug.c Create Date:2022-07-27 12:20:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:current_css_set_cg_links_read

函数原型:static int current_css_set_cg_links_read(struct seq_file *seq, void *v)

返回类型:int

参数:

类型参数名称
struct seq_file *seq
void *v
93  name_buf等于开辟内存
94  如果非name_buf则返回:负ENOMEM
97  spin_lock_irq( & css_set_lock)
98  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
99  cset等于获得任务的css_set
101  c等于he cgroup and css_set this link associates
103  Name / path handling functions. All are thin wrappers around the kernfs* counterparts and can be called under any context.
104  seq_printf(seq, "Root %d group %s\n", Unique id for this hierarchy. , name_buf)
107  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
108  spin_unlock_irq( & css_set_lock)
109  kfree(name_buf)
110  返回:0