函数逻辑报告 |
Source Code:kernel\cgroup\cpuset.c |
Create Date:2022-07-27 12:20:02 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:CPU / memory hotplug is handled asynchronously.
函数原型:static void cpuset_hotplug_workfn(struct work_struct *work)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct work_struct * | work |
3124 | on_dfl等于Cgroup v2 behavior is used when on default hierarchy or the* cgroup_v2_mode flag is set. |
3130 | percpu_down_write( & cpuset_rwsem) |
3134 | new_mems等于The following particular system nodemasks and operations* on them manage all possible and online nodes.[N_MEMORY] |
3141 | cpus_updated等于非pumask_equal - *src1p == *src2p*@src1p: the first input*@src2p: the second input |
3142 | mems_updated等于非nodes_equal(effective_mems, new_mems) |
3145 | 如果cpus_updated则 |
3146 | spin_lock_irq( & callback_lock) |
3155 | 如果 number of CPUs in subparts_cpus 则 |
3158 | number of CPUs in subparts_cpus 等于0 |
3159 | 清空全部CPU信息 |
3160 | 否则 |
3166 | spin_unlock_irq( & callback_lock) |
3171 | 如果mems_updated则 |
3172 | spin_lock_irq( & callback_lock) |
3173 | 如果非on_dfl则mems_allowed等于new_mems |
3175 | effective_mems等于new_mems |
3176 | spin_unlock_irq( & callback_lock) |
3180 | percpu_up_write( & cpuset_rwsem) |
3183 | 如果cpus_updated或mems_updated则 |
3202 | 如果cpus_updated或force_rebuild则 |
3203 | force_rebuild = false |
3204 | rebuild_sched_domains() |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |