Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:q_matrix_alloc - Allocate a regular interrupt in a CPU map*@m: Matrix pointer*@msk: Which CPUs to search in*@reserved: Allocate previously reserved interrupts*@mapped_cpu: Pointer to store the CPU for which the irq was allocated

Proto:int irq_matrix_alloc(struct irq_matrix *m, const struct cpumask *msk, bool reserved, unsigned int *mapped_cpu)

Type:int

Parameter:

TypeParameterName
struct irq_matrix *m
const struct cpumask *msk
boolreserved
unsigned int *mapped_cpu
383  cpu = Find the best CPU which has the lowest vector allocation count
384  If cpu == UINT_MAX Then Return -ENOSPC
387  cm = per_cpu_ptr(maps, cpu)
388  bit = matrix_alloc_area(m, cm, 1, false)
389  If bit >= alloc_end Then Return -ENOSPC
391  allocated++
392  available--
393  total_allocated++
394  global_available--
395  If reserved Then global_reserved--
397  mapped_cpu = cpu
398  trace_irq_matrix_alloc(bit, cpu, m, cm)
399  Return bit