Function report |
Source Code:kernel\cgroup\freezer.c |
Create Date:2022-07-28 11:13:52 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Freeze or unfreeze all tasks in the given cgroup.
Proto:static void cgroup_do_freeze(struct cgroup *cgrp, bool freeze)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct cgroup * | cgrp | |
bool | freeze |
184 | spin_lock_irq( & css_set_lock) |
185 | If freeze Then Atomically set a bit in memory |
189 | spin_unlock_irq( & css_set_lock) |
191 | If freeze Then cgroup_path() takes a spin lock(freeze, cgrp) |
193 | Else cgroup_path() takes a spin lock(unfreeze, cgrp) |
202 | If Per task flags (PF_*), defined further below: & I am a kernel thread Then Continue |
212 | spin_lock_irq( & css_set_lock) |
215 | spin_unlock_irq( & css_set_lock) |
Name | Describe |
---|---|
cgroup_freeze |
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 |