Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\asm-generic\mshyperv.h Create Date:2022-07-28 08:15:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:cpumask_to_vpset

Proto:static inline int cpumask_to_vpset(struct hv_vpset *vpset, const struct cpumask *cpus)

Type:int

Parameter:

TypeParameterName
struct hv_vpset *vpset
const struct cpumask *cpus
134  nr_bank = 1
137  If hv_max_vp_index / 64 >= 64 Then Return 0
145  When vcpu_bank <= hv_max_vp_index / 64 cycle bank_contents[vcpu_bank] = 0
152  vcpu = hv_cpu_number_to_vp_number() - Map CPU to VP
153  If vcpu == Sentinel value for an uninitialized entry in hv_vp_index array Then Return -1
155  vcpu_bank = vcpu / 64
156  vcpu_offset = vcpu % 64
157  __set_bit - Set a bit in memory*@nr: the bit to set*@addr: the address to start counting from* Unlike set_bit(), this function is non-atomic. If it is called on the same* region of memory concurrently, the effect may be that only one operation* succeeds.
159  If vcpu_bank >= nr_bank Then nr_bank = vcpu_bank + 1
162  valid_bank_mask = GENMASK_ULL(nr_bank - 1, 0)
163  Return nr_bank