Function report |
Source Code:kernel\cgroup\cgroup.c |
Create Date:2022-07-28 11:11:03 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:group_destroy_locked - the first stage of cgroup destruction*@cgrp: cgroup to be destroyed* css's make use of percpu refcnts whose killing latency shouldn't be* exposed to userland and are RCU protected
Proto:static int cgroup_destroy_locked(struct cgroup *cgrp)__releases(&cgroup_mutex) __acquires(&cgroup_mutex)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct cgroup * | cgrp |
5451 | parent = cgroup_parent(cgrp) |
5462 | If synchronization, the result can only be used as a hint Then Return -EBUSY |
5479 | flags &= ~CSS_ONLINE |
5481 | spin_lock_irq( & css_set_lock) |
5483 | dead and being drained, ignore for migration = true |
5484 | spin_unlock_irq( & css_set_lock) |
5487 | When ssid < CGROUP_SUBSYS_COUNT cycle if (!((css) = ({ |
5487 | typeof( * ((cgrp)-> Private pointers for each registered subsystem [(ssid)])) * ________p1 = (typeof( * ((cgrp)-> Private pointers for each registered subsystem [(ssid)])) * )({ |
5487 | union{typeof(( Private pointers for each registered subsystem [(ssid)])) __val;char __c[1];}__u |
5487 | If 1 Then __read_once_size( & (( Private pointers for each registered subsystem [(ssid)])), __c, size of Private pointers for each registered subsystem [(ssid)] ) |
5487 | Else __read_once_size_nocheck( & (( Private pointers for each registered subsystem [(ssid)])), __c, size of Private pointers for each registered subsystem [(ssid)] ) |
5487 | Do |
5487 | When 0 cycle |
5487 | __val |
5487 | }) |
5487 | Do |
5487 | When 0 cycle |
5487 | }))) |
5492 | kernfs_remove( cgroup kernfs entry ) |
5494 | If parent && cgroup_is_threaded(cgrp) Then # of live threaded child cgroups -- |
5497 | spin_lock_irq( & css_set_lock) |
5500 | nr_dying_descendants++ |
5508 | spin_unlock_irq( & css_set_lock) |
5512 | cgroup_bpf_offline(cgrp) |
5517 | Return 0 |
Name | Describe |
---|---|
cgroup_mkdir | |
cgroup_rmdir | put the base reference |
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 |