函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:devcgroup_seq_show

函数原型:static int devcgroup_seq_show(struct seq_file *m, void *v)

返回类型:int

参数:

类型参数名称
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  如果behavior恒等于DEVCG_DEFAULT_ALLOW
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  否则
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  返回:0