Function report |
Source Code:lib\cpu_rmap.c |
Create Date:2022-07-28 07:17:51 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:pu_rmap_update - update CPU rmap following a change of object affinity*@rmap: CPU rmap to update*@index: Index of object whose affinity changed*@affinity: New CPU affinity of object
Proto:int cpu_rmap_update(struct cpu_rmap *rmap, u16 index, const struct cpumask *affinity)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct cpu_rmap * | rmap | |
| u16 | index | |
| const struct cpumask * | affinity |
| 161 | If Value for the false possibility is greater at compile time(!zalloc_cpumask_var( & update_mask, GFP_KERNEL)) Then Return -ENOMEM |
| 167 | for_each_online_cpu(cpu) |
| 174 | debug_print_rmap(rmap, "after invalidating old distances") |
| 181 | dist = 0 |
| 186 | debug_print_rmap(rmap, "after updating neighbours") |
| 190 | If Reevaluate nearest object for given CPU, comparing with the given* neighbours at the given distance. Then Continue |
| 193 | If Reevaluate nearest object for given CPU, comparing with the given* neighbours at the given distance. Then Continue |
| 196 | If Reevaluate nearest object for given CPU, comparing with the given* neighbours at the given distance. Then Continue |
| 204 | debug_print_rmap(rmap, "after copying neighbours") |
| 207 | Return 0 |
| Name | Describe |
|---|---|
| irq_cpu_rmap_notify | q_cpu_rmap_notify - callback for IRQ subsystem when IRQ affinity updated*@notify: struct irq_affinity_notify passed by irq/manage.c*@mask: cpu mask for new SMP affinity* This is executed in workqueue context. |
| 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 |