函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:css_to_devcgroup

函数原型:static inline struct dev_cgroup *css_to_devcgroup(struct cgroup_subsys_state *s)

返回类型:struct dev_cgroup

参数:

类型参数名称
struct cgroup_subsys_state *s
48  返回:s ? container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(s, structdev_cgroup, css) : NULL
调用者
名称描述
task_devcgroup
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_offline
devcgroup_css_free
devcgroup_seq_show
parent_has_permparent_has_perm:* when adding a new allow rule to a device exception list, the rule* must be allowed in the parent device
parent_allows_removalparent_allows_removal - verify if it's ok to remove an exception*@childcg: child cgroup from where the exception will be removed*@ex: exception being removed* When removing an exception in cgroups with default ALLOW policy, it must* be checked if removing
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
devcgroup_access_write