Function report |
Source Code:kernel\cgroup\cpuset.c |
Create Date:2022-07-28 11:17:31 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:static void cpuset_hotplug_update_tasks(struct cpuset *cs, struct tmpmasks *tmp)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct cpuset * | cs | |
| struct tmpmasks * | tmp |
| 3022 | retry : |
| 3025 | percpu_down_write( & cpuset_rwsem) |
| 3032 | percpu_up_write( & cpuset_rwsem) |
| 3033 | Go to retry |
| 3038 | nodes_and(new_mems, mems_allowed, effective_mems) |
| 3047 | If Not tmp || Not partition root state Then Go to update_tasks |
| 3057 | If number of CPUs in subparts_cpus Then |
| 3058 | number of CPUs in subparts_cpus = 0 |
| 3073 | partition root state = PRS_ERROR |
| 3075 | cpuset_force_rebuild() |
| 3089 | update_tasks : |
| 3090 | cpus_updated = Not pumask_equal - *src1p == *src2p*@src1p: the first input*@src2p: the second input |
| 3091 | mems_updated = Not nodes_equal(new_mems, effective_mems) |
| 3093 | If Cgroup v2 behavior is used when on default hierarchy or the* cgroup_v2_mode flag is set. Then hotplug_update_tasks(cs, & new_cpus, & new_mems, cpus_updated, mems_updated) |
| 3096 | Else hotplug_update_tasks_legacy(cs, & new_cpus, & new_mems, cpus_updated, mems_updated) |
| 3100 | percpu_up_write( & cpuset_rwsem) |
| Name | Describe |
|---|---|
| cpuset_hotplug_workfn | CPU / memory hotplug is handled asynchronously. |
| 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 |