Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cgroup\debug.c Create Date:2022-07-28 11:17:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:current_css_set_cg_links_read

Proto:static int current_css_set_cg_links_read(struct seq_file *seq, void *v)

Type:int

Parameter:

TypeParameterName
struct seq_file *seq
void *v
93  name_buf = Allocation memory
94  If Not name_buf Then Return -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 = ask_css_set - obtain a task's css_set*@task: the task to obtain css_set for* See task_css_set_check().
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  Return 0