Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:__init struct irq_matrix *irq_alloc_matrix(unsigned int matrix_bits, unsigned int alloc_start, unsigned int alloc_end)

Type:struct irq_matrix

Parameter:

TypeParameterName
unsigned intmatrix_bits
unsigned intalloc_start
unsigned intalloc_end
55  If matrix_bits > IRQ_MATRIX_BITS Then Return NULL
58  m = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
59  If Not m Then Return NULL
62  matrix_bits = matrix_bits
63  alloc_start = alloc_start
64  alloc_end = alloc_end
65  alloc_size = alloc_end - alloc_start
66  maps = alloc_percpu( * maps)
67  If Not maps Then
68  kfree - free previously allocated memory*@objp: pointer returned by kmalloc.* If @objp is NULL, no operation is performed.* Don't free memory not originally allocated by kmalloc()* or you will run into trouble.
69  Return NULL
71  Return m