Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:q_matrix_reserve_managed - Reserve a managed interrupt in a CPU map*@m: Matrix pointer*@msk: On which CPUs the bits should be reserved

Proto:int irq_matrix_reserve_managed(struct irq_matrix *m, const struct cpumask *msk)

Type:int

Parameter:

TypeParameterName
struct irq_matrix *m
const struct cpumask *msk
215  cm = per_cpu_ptr(maps, cpu)
218  bit = matrix_alloc_area(m, cm, 1, true)
219  If bit >= alloc_end Then Go to cleanup
221  managed++
222  If online Then
223  available--
224  global_available--
226  trace_irq_matrix_reserve_managed(bit, cpu, m, cm)
228  Return 0
229  cleanup :
230  failed_cpu = cpu
232  If cpu == failed_cpu Then Break
234  q_matrix_remove_managed - Remove managed interrupts in a CPU map*@m: Matrix pointer*@msk: On which CPUs the bits should be removed* Can be called for offline CPUs* This removes not allocated managed interrupts from the map
236  Return -ENOSPC