函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\asm-generic\mshyperv.h Create Date:2022-07-27 09:15:14
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:cpumask_to_vpset

函数原型:static inline int cpumask_to_vpset(struct hv_vpset *vpset, const struct cpumask *cpus)

返回类型:int

参数:

类型参数名称
struct hv_vpset *vpset
const struct cpumask *cpus
134  nr_bank等于1
137  如果hv_max_vp_index除64大于等于64则返回:0
145 vcpu_bank小于等于hv_max_vp_index除64循环bank_contents[vcpu_bank]等于0
152  vcpu等于hv_cpu_number_to_vp_number() - Map CPU to VP
153  如果vcpu恒等于Sentinel value for an uninitialized entry in hv_vp_index array 则返回:负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  如果vcpu_bank大于等于nr_banknr_bank等于vcpu_bank加1
162  valid_bank_mask等于GENMASK_ULL(nr_bank - 1, 0)
163  返回:nr_bank