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_exceptions_copy(struct list_head *dest, struct list_head *orig)

Type:int

Parameter:

TypeParameterName
struct list_head *dest
struct list_head *orig
63  lockdep_assert_held( & devcgroup_mutex)
66  new = 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
67  If Not new Then Go to free_and_exit
69  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
72  Return 0
74  free_and_exit :
76  deletes entry from list
77  kfree(ex)
79  Return -ENOMEM
Caller
NameDescribe
devcgroup_onlinedevcgroup_online - initializes devcgroup's behavior and exceptions based on* parent's*@css: css getting online* returns 0 in case of success, error code otherwise
devcgroup_update_accessModify the exception list using allow/deny rules