Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
struct cpu_rmap *rmap
u16index
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)
168  If index == index Then
174  debug_print_rmap(rmap, "after invalidating old distances")
180  index = index
181  dist = 0
182  pumask_or - *dstp = *src1p | *src2p*@dstp: the cpumask result*@src1p: the first input*@src2p: the second input
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")
206  free_cpumask_var(update_mask)
207  Return 0
Caller
NameDescribe
irq_cpu_rmap_notifyq_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.