Function report |
Source Code:kernel\cgroup\cpuset.c |
Create Date:2022-07-28 11:17:35 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:CPU / memory hotplug is handled asynchronously.
Proto:static void cpuset_hotplug_workfn(struct work_struct *work)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
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 = Not pumask_equal - *src1p == *src2p*@src1p: the first input*@src2p: the second input |
3142 | mems_updated = Not nodes_equal(effective_mems, new_mems) |
3145 | If cpus_updated Then |
3146 | spin_lock_irq( & callback_lock) |
3155 | If number of CPUs in subparts_cpus Then |
3158 | number of CPUs in subparts_cpus = 0 |
3160 | Else |
3166 | spin_unlock_irq( & callback_lock) |
3171 | If mems_updated Then |
3172 | spin_lock_irq( & callback_lock) |
3173 | If Not on_dfl Then mems_allowed = new_mems |
3175 | effective_mems = new_mems |
3176 | spin_unlock_irq( & callback_lock) |
3180 | percpu_up_write( & cpuset_rwsem) |
3183 | If cpus_updated || mems_updated Then |
3202 | If cpus_updated || force_rebuild Then |
3203 | force_rebuild = false |
3204 | rebuild_sched_domains() |
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 |