函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:q_calc_affinity_vectors - Calculate the optimal number of vectors*@minvec: The minimum number of vectors available*@maxvec: The maximum number of vectors available*@affd: Description of the affinity requirements

函数原型:unsigned int irq_calc_affinity_vectors(unsigned int minvec, unsigned int maxvec, const struct irq_affinity *affd)

返回类型:unsigned int

参数:

类型参数名称
unsigned intminvec
unsigned intmaxvec
const struct irq_affinity *affd
499  resv等于pre_vectorspost_vectors
502  如果resv大于minvec则返回:0
505  如果calc_sets
506  set_vecs等于maxvecresv
507  否则
508  get_online_cpus()
509  set_vecs等于pumask_weight - Count of bits in *srcp*@srcp: the cpumask to count bits (< nr_cpu_ids) in.
510  put_online_cpus()
513  返回:resv两数取小(set_vecs, maxvec - resv)