Function report |
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 activity | Download SCCT | Chinese |
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:
| Type | Parameter | Name |
|---|---|---|
| unsigned int | matrix_bits | |
| unsigned int | alloc_start | |
| unsigned int | alloc_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 |
| 65 | alloc_size = alloc_end - alloc_start |
| 66 | maps = alloc_percpu( * maps) |
| 67 | If Not maps Then |
| 71 | Return m |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |