Function report |
Source Code:kernel\cgroup\cgroup.c |
Create Date:2022-07-28 11:10:50 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:The returned cgroup is fully initialized including its control mask, but* it isn't associated with its kernfs_node and doesn't have the control* mask applied.
Proto:static struct cgroup *cgroup_create(struct cgroup *parent, const char *name, umode_t mode)
Type:struct cgroup
Parameter:
Type | Parameter | Name |
---|---|---|
struct cgroup * | parent | |
const char * | name | |
umode_t | mode |
5158 | cgrp = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
5164 | If ret Then Go to out_free_cgrp |
5169 | If ret Then Go to out_cancel_ref |
5174 | kn = kernfs_create_dir( cgroup kernfs entry , name, mode, cgrp) |
5177 | Go to out_stat_exit |
5179 | cgroup kernfs entry = kn |
5181 | init_cgroup_housekeeping(cgrp) |
5183 | PI: the parent css. Placed here for cache proximity to following* fields of the containing structure. = self css with NULL ->ss, points back to this cgroup |
5187 | ret = psi_cgroup_alloc(cgrp) |
5188 | If ret Then Go to out_kernfs_remove |
5191 | ret = cgroup_bpf_inherit(cgrp) |
5192 | If ret Then Go to out_psi_free |
5200 | If Should the cgroup actually be frozen? Then |
5211 | spin_lock_irq( & css_set_lock) |
5227 | spin_unlock_irq( & css_set_lock) |
5229 | If notify_on_release(parent) Then Atomically set a bit in memory |
5232 | If st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then Atomically set a bit in memory |
5240 | cgroup_get_live(parent) |
5251 | Return cgrp |
5253 | out_psi_free : |
5254 | psi_cgroup_free(cgrp) |
5255 | out_kernfs_remove : |
5256 | kernfs_remove( cgroup kernfs entry ) |
5257 | out_stat_exit : |
5260 | out_cancel_ref : |
5262 | out_free_cgrp : |
Name | Describe |
---|---|
cgroup_mkdir |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |