Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\cpu_rmap.c Create Date:2022-07-28 07:17:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Reevaluate nearest object for given CPU, comparing with the given* neighbours at the given distance.

Proto:static bool cpu_rmap_copy_neigh(struct cpu_rmap *rmap, unsigned int cpu, const struct cpumask *mask, u16 dist)

Type:bool

Parameter:

TypeParameterName
struct cpu_rmap *rmap
unsigned intcpu
const struct cpumask *mask
u16dist
100  If dist > dist && dist <= dist Then
102  index = index
103  dist = dist
104  Return true
107  Return false
Caller
NameDescribe
cpu_rmap_updatepu_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