函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\cpu_rmap.c Create Date:2022-07-27 08:16:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:int cpu_rmap_update(struct cpu_rmap *rmap, u16 index, const struct cpumask *affinity)

返回类型:int

参数:

类型参数名称
struct cpu_rmap *rmap
u16index
const struct cpumask *affinity
161  如果此条件成立可能性小(为编译器优化)(!zalloc_cpumask_var( & update_mask, GFP_KERNEL))则返回:负ENOMEM
167  遍历在线CPU(cpu)
168  如果index恒等于index
169  dist等于CPU_RMAP_DIST_INF
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  如果Reevaluate nearest object for given CPU, comparing with the given* neighbours at the given distance.则继续下一循环
193  如果Reevaluate nearest object for given CPU, comparing with the given* neighbours at the given distance.则继续下一循环
196  如果Reevaluate nearest object for given CPU, comparing with the given* neighbours at the given distance.则继续下一循环
204  debug_print_rmap(rmap, "after copying neighbours")
206  释放CPU掩码
207  返回:0
调用者
名称描述
irq_cpu_rmap_notifyIRQ更新时的回调