函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:devcgroup_online - initializes devcgroup's behavior and exceptions based on* parent's*@css: css getting online* returns 0 in case of success, error code otherwise

函数原型:static int devcgroup_online(struct cgroup_subsys_state *css)

返回类型:int

参数:

类型参数名称
struct cgroup_subsys_state *css
176  dev_cgroup等于css_to_devcgroup(css)
177  parent_dev_cgroup等于css_to_devcgroup(PI: the parent css. Placed here for cache proximity to following* fields of the containing structure.)
178  ret等于0
180  mutex_lock( & devcgroup_mutex)
182  如果(parent_dev_cgroup == NULL)则behavior等于DEVCG_DEFAULT_ALLOW
184  否则
185  ret等于alled under devcgroup_mutex
187  如果非retbehavior等于behavior
190  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
192  返回:ret