函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:alled under devcgroup_mutex

函数原型:static void dev_exception_rm(struct dev_cgroup *dev_cgroup, struct dev_exception_item *ex)

返回类型:void

参数:

类型参数名称
struct dev_cgroup *dev_cgroup
struct dev_exception_item *ex
122  lockdep_assert_held( & devcgroup_mutex)
125  如果type不等于type则继续下一循环
127  如果major不等于major则继续下一循环
129  如果minor不等于minor则继续下一循环
132  access与等于access的反
133  如果非access
134  删除不需要重新初始化的列表项
135  kfree_rcu() - kfree an object after a grace period(walk, rcu)
调用者
名称描述
revalidate_active_exceptionsvalidate_active_exceptions - walks through the active exception list and* revalidates the exceptions based on parent's* behavior and exceptions
propagate_exceptionpropagate_exception - propagates a new exception to the children*@devcg_root: device cgroup that added a new exception*@ex: new exception to be propagated* returns: 0 in case of success, != 0 in case of error
devcgroup_update_accessModify the exception list using allow/deny rules