Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\irq\affinity.c Create Date:2022-07-28 10:16:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:unsigned int irq_calc_affinity_vectors(unsigned int minvec, unsigned int maxvec, const struct irq_affinity *affd)

Type:unsigned int

Parameter:

TypeParameterName
unsigned intminvec
unsigned intmaxvec
const struct irq_affinity *affd
499  resv = pre_vectors + post_vectors
502  If resv > minvec Then Return 0
505  If calc_sets Then
506  set_vecs = maxvec - resv
507  Else
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  Return resv + min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(set_vecs, maxvec - resv)