函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:int irq_matrix_reserve_managed(struct irq_matrix *m, const struct cpumask *msk)

返回类型:int

参数:

类型参数名称
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  如果bit大于等于alloc_end则转到:cleanup
221  managed自加
222  如果online
223  available自减
224  global_available自减
226  trace_irq_matrix_reserve_managed(bit, cpu, m, cm)
228  返回:0
229  cleanup :
230  failed_cpu等于cpu
232  如果cpu恒等于failed_cpu退出
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  返回:负ENOSPC
调用者
名称描述
reserve_managed_vector