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

Proto:static int devcgroup_online(struct cgroup_subsys_state *css)

Type:int

Parameter:

TypeParameterName
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  If (parent_dev_cgroup == NULL) Then behavior = DEVCG_DEFAULT_ALLOW
184  Else
185  ret = alled under devcgroup_mutex
187  If Not ret Then behavior = 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  Return ret