Function report |
Source Code:kernel\cgroup\cpuset.c |
Create Date:2022-07-28 11:16:30 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:pdate_cpumasks_hier - Update effective cpumasks and tasks in the subtree*@cs: the cpuset to consider*@tmp: temp variables for calculating effective_cpus & partition setup* When congifured cpumask is changed, the effective cpumasks of this cpuset
Proto:static void update_cpumasks_hier(struct cpuset *cs, struct tmpmasks *tmp)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct cpuset * | cs | |
struct tmpmasks * | tmp |
1296 | bool need_rebuild_sched_domains = false |
1316 | WARN_ON_ONCE(!child_ecpus_count) |
1317 | child_ecpus_count-- |
1326 | pos_css = ss_rightmost_descendant - return the rightmost descendant of a css*@pos: css of interest* Return the rightmost descendant of @pos |
1327 | Continue |
1336 | If cp != cs && partition root state Then |
1358 | Case partition root state == PRS_ENABLED |
1361 | Break |
1363 | Case partition root state == PRS_ERROR |
1367 | partition root state = PRS_ERROR |
1368 | If number of CPUs in subparts_cpus Then |
1369 | number of CPUs in subparts_cpus = 0 |
1372 | Break |
1376 | If Not ss_tryget_online - try to obtain a reference on the specified css if online*@css: target css* Obtain a reference on @css if it's online Then Continue |
1380 | spin_lock_irq( & callback_lock) |
1383 | If number of CPUs in subparts_cpus && partition root state != PRS_ENABLED Then |
1385 | number of CPUs in subparts_cpus = 0 |
1387 | Else if number of CPUs in subparts_cpus Then |
1402 | number of CPUs in subparts_cpus = 0 |
1411 | spin_unlock_irq( & callback_lock) |
1413 | WARN_ON(!Cgroup v2 behavior is used when on default hierarchy or the* cgroup_v2_mode flag is set. && !pumask_equal - *src1p == *src2p*@src1p: the first input*@src2p: the second input) |
1435 | If need_rebuild_sched_domains Then rebuild_sched_domains_locked() |
Name | Describe |
---|---|
update_sibling_cpumasks | pdate_sibling_cpumasks - Update siblings cpumasks*@parent: Parent cpuset*@cs: Current cpuset*@tmp: Temp variables |
update_cpumask | pdate_cpumask - update the cpus_allowed mask of a cpuset and all tasks in it*@cs: the cpuset to consider*@trialcs: trial cpuset*@buf: buffer of cpu numbers written to this cpuset |
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 |