函数逻辑报告 |
Source Code:kernel\cgroup\cpuset.c |
Create Date:2022-07-27 12:19:57 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:puset_hotplug_update_tasks - update tasks in a cpuset for hotunplug*@cs: cpuset in interest*@tmp: the tmpmasks structure pointer* Compare @cs's cpu and mem masks against top_cpuset and if some have gone* offline, update @cs accordingly
函数原型:static void cpuset_hotplug_update_tasks(struct cpuset *cs, struct tmpmasks *tmp)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct cpuset * | cs | |
| struct tmpmasks * | tmp |
| 3022 | retry : |
| 3025 | percpu_down_write( & cpuset_rwsem) |
| 3032 | percpu_up_write( & cpuset_rwsem) |
| 3033 | 转到:retry |
| 3038 | nodes_and(new_mems, mems_allowed, effective_mems) |
| 3047 | 如果非tmp或非 partition root state 则转到:update_tasks |
| 3057 | 如果 number of CPUs in subparts_cpus 则 |
| 3058 | number of CPUs in subparts_cpus 等于0 |
| 3059 | 清空全部CPU信息 |
| 3073 | partition root state 等于PRS_ERROR |
| 3075 | cpuset_force_rebuild() |
| 3089 | update_tasks : |
| 3090 | cpus_updated等于非pumask_equal - *src1p == *src2p*@src1p: the first input*@src2p: the second input |
| 3091 | mems_updated等于非nodes_equal(new_mems, effective_mems) |
| 3093 | 如果Cgroup v2 behavior is used when on default hierarchy or the* cgroup_v2_mode flag is set.则hotplug_update_tasks(cs, & new_cpus, & new_mems, cpus_updated, mems_updated) |
| 3096 | 否则hotplug_update_tasks_legacy(cs, & new_cpus, & new_mems, cpus_updated, mems_updated) |
| 3100 | percpu_up_write( & cpuset_rwsem) |
| 名称 | 描述 |
|---|---|
| cpuset_hotplug_workfn | CPU / memory hotplug is handled asynchronously. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |