函数逻辑报告 |
Source Code:kernel\cgroup\cpuset.c |
Create Date:2022-07-27 12:18:52 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:static void update_cpumasks_hier(struct cpuset *cs, struct tmpmasks *tmp)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
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 | 继续下一循环 |
1336 | 如果cp不等于cs且 partition root state 则 |
1358 | 当: partition root state 恒等于PRS_ENABLED |
1361 | 退出 |
1363 | 当: partition root state 恒等于PRS_ERROR |
1367 | partition root state 等于PRS_ERROR |
1368 | 如果 number of CPUs in subparts_cpus 则 |
1369 | number of CPUs in subparts_cpus 等于0 |
1370 | 清空全部CPU信息 |
1372 | 退出 |
1376 | 如果非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则继续下一循环 |
1380 | spin_lock_irq( & callback_lock) |
1383 | 如果 number of CPUs in subparts_cpus 且 partition root state 不等于PRS_ENABLED则 |
1385 | number of CPUs in subparts_cpus 等于0 |
1386 | 清空全部CPU信息 |
1387 | 否则如果 number of CPUs in subparts_cpus 则 |
1401 | 清空全部CPU信息 |
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) |
1431 | 设置一个css引用 |
名称 | 描述 |
---|---|
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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |