函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:alled under devcgroup_mutex

函数原型:static int dev_exception_add(struct dev_cgroup *dev_cgroup, struct dev_exception_item *ex)

返回类型:int

参数:

类型参数名称
struct dev_cgroup *dev_cgroup
struct dev_exception_item *ex
90  lockdep_assert_held( & devcgroup_mutex)
92  excopy等于kmemdup - duplicate region of memory*@src: memory region to duplicate*@len: memory region length*@gfp: GFP mask to use* Return: newly allocated copy of @src or %NULL in case of error
93  如果非excopy则返回:负ENOMEM
97  如果type不等于type则继续下一循环
99  如果major不等于major则继续下一循环
101  如果minor不等于minor则继续下一循环
104  access或等于access
105  释放内存
106  excopy = NULL
109  如果(excopy != NULL)则添加RCU链表项
111  返回:0
调用者
名称描述
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