函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:alled under devcgroup_mutex

函数原型:static int dev_exceptions_copy(struct list_head *dest, struct list_head *orig)

返回类型:int

参数:

类型参数名称
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  如果非new则转到:free_and_exit
69  添加链表项
72  返回:0
74  free_and_exit :
76  删除链表项
77  释放内存
79  返回:负ENOMEM
调用者
名称描述
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