函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:q_alloc_matrix - Allocate a irq_matrix structure and initialize it*@matrix_bits: Number of matrix bits must be <= IRQ_MATRIX_BITS*@alloc_start: From which bit the allocation search starts*@alloc_end: At which bit the allocation search ends, i

函数原型:__init struct irq_matrix *irq_alloc_matrix(unsigned int matrix_bits, unsigned int alloc_start, unsigned int alloc_end)

返回类型:struct irq_matrix

参数:

类型参数名称
unsigned intmatrix_bits
unsigned intalloc_start
unsigned intalloc_end
55  如果matrix_bits大于IRQ_MATRIX_BITS则返回:NULL
58  m等于分配内存并置零
59  如果非m则返回:NULL
62  matrix_bits等于matrix_bits
63  alloc_start等于alloc_start
64  alloc_end等于alloc_end
65  alloc_size等于alloc_endalloc_start
66  maps等于alloc_percpu( * maps)
67  如果非maps
68  释放内存
69  返回:NULL
71  返回:m
调用者
名称描述
arch_early_irq_init