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:alled under devcgroup_mutex

Proto:static int dev_exception_add(struct dev_cgroup *dev_cgroup, struct dev_exception_item *ex)

Type:int

Parameter:

TypeParameterName
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  If Not excopy Then Return -ENOMEM
97  If type != type Then Continue
99  If major != major Then Continue
101  If minor != minor Then Continue
104  access |= access
105  kfree(excopy)
106  excopy = NULL
109  If (excopy != NULL) Then list_add_tail_rcu - add a new entry to rcu-protected list*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head
111  Return 0
Caller
NameDescribe
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