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:css_to_devcgroup

Proto:static inline struct dev_cgroup *css_to_devcgroup(struct cgroup_subsys_state *s)

Type:struct dev_cgroup

Parameter:

TypeParameterName
struct cgroup_subsys_state *s
48  Return 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
Caller
NameDescribe
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