Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
unsigned int | minvec | |
unsigned int | maxvec | |
const struct irq_affinity * | affd |
499 | resv = pre_vectors + post_vectors |
505 | If calc_sets Then |
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) |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |