Function report |
Source Code:kernel\cgroup\cgroup.c |
Create Date:2022-07-28 11:07:54 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:d_css_set - return a new css_set with one cgroup updated*@old_cset: the baseline css_set*@cgrp: the cgroup to be updated* Return a new css_set that's equivalent to @old_cset, but with @cgrp* substituted into the appropriate hierarchy.
Proto:static struct css_set *find_css_set(struct css_set *old_cset, struct cgroup *cgrp)
Type:struct css_set
Parameter:
Type | Parameter | Name |
---|---|---|
struct css_set * | old_cset | |
struct cgroup * | cgrp |
1181 | struct cgroup_subsys_state * template[CGROUP_SUBSYS_COUNT] = {} |
1193 | spin_lock_irq( & css_set_lock) |
1195 | If cset Then ed get/put for css_set objects |
1197 | spin_unlock_irq( & css_set_lock) |
1202 | cset = 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). |
1203 | If Not cset Then Return NULL |
1219 | INIT_HLIST_NODE( & List running through all cgroup groups in the same hash* slot. Protected by css_set_lock) |
1228 | spin_lock_irq( & css_set_lock) |
1240 | 1 for init_css_set ++ |
1243 | key = css_set_hash(Set of subsystem states, one for each subsystem. This array is* immutable after creation apart from the init_css_set during* subsystem registration (at boot time).) |
1247 | css = Set of subsystem states, one for each subsystem. This array is* immutable after creation apart from the init_css_set during* subsystem registration (at boot time).[ssid] |
1254 | spin_unlock_irq( & css_set_lock) |
1262 | If cgroup_is_threaded(he default cgroup associated with this css_set ) Then |
1266 | If Not dcset Then |
1267 | put_css_set(cset) |
1268 | Return NULL |
1271 | spin_lock_irq( & css_set_lock) |
1275 | spin_unlock_irq( & css_set_lock) |
1278 | Return cset |
Name | Describe |
---|---|
find_css_set | d_css_set - return a new css_set with one cgroup updated*@old_cset: the baseline css_set*@cgrp: the cgroup to be updated* Return a new css_set that's equivalent to @old_cset, but with @cgrp* substituted into the appropriate hierarchy. |
cgroup_migrate_prepare_dst | group_migrate_prepare_dst - prepare destination css_sets for migration*@mgctx: migration context* Tasks are about to be moved and all the source css_sets have been* preloaded to @mgctx->preloaded_src_csets |
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 |