Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\device_cgroup.c Create Date:2022-07-28 19:55:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:devcgroup_seq_show

Proto:static int devcgroup_seq_show(struct seq_file *m, void *v)

Type:int

Parameter:

TypeParameterName
struct seq_file *m
void *v
269  devcgroup = css_to_devcgroup(seq_css(m))
271  char maj[13], min[13], acc[4]
273  _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
280  If behavior == DEVCG_DEFAULT_ALLOW Then
281  set_access(acc, DEVCG_ACC_MASK)
282  set_majmin(maj, ~0)
283  set_majmin(min, ~0)
284  seq_printf(m, "%c %s:%s %s\n", type_to_char(his represents all devices ), maj, min, acc)
286  Else
288  set_access(acc, access)
289  set_majmin(maj, major)
290  set_majmin(min, minor)
291  seq_printf(m, "%c %s:%s %s\n", type_to_char(type), maj, min, acc)
295  _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()
297  Return 0