Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:matrix_alloc_area

Proto:static unsigned int matrix_alloc_area(struct irq_matrix *m, struct cpumap *cm, unsigned int num, bool managed)

Type:unsigned int

Parameter:

TypeParameterName
struct irq_matrix *m
struct cpumap *cm
unsigned intnum
boolmanaged
113  start = alloc_start
114  end = alloc_end
116  bitmap_or(scratch_map, managed_map, system_map, end)
117  bitmap_or(scratch_map, scratch_map, alloc_map, end)
118  area = map_find_next_zero_area - find a contiguous aligned zero area*@map: The address to base the search on*@size: The bitmap size in bits*@start: The bitnumber to start searching at*@nr: The number of zeroed bits we're looking for*@align_mask: Alignment mask
119  If area >= end Then Return area
121  If managed Then bitmap_set(managed_map, area, num)
123  Else bitmap_set(alloc_map, area, num)
125  Return area
Caller
NameDescribe
irq_matrix_reserve_managedq_matrix_reserve_managed - Reserve a managed interrupt in a CPU map*@m: Matrix pointer*@msk: On which CPUs the bits should be reserved
irq_matrix_allocq_matrix_alloc - Allocate a regular interrupt in a CPU map*@m: Matrix pointer*@msk: Which CPUs to search in*@reserved: Allocate previously reserved interrupts*@mapped_cpu: Pointer to store the CPU for which the irq was allocated