函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:matrix_alloc_area

函数原型:static unsigned int matrix_alloc_area(struct irq_matrix *m, struct cpumap *cm, unsigned int num, bool managed)

返回类型:unsigned int

参数:

类型参数名称
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  如果area大于等于end则返回:area
121  如果managedbitmap_set(managed_map, area, num)
123  否则bitmap_set(alloc_map, area, num)
125  返回:area
调用者
名称描述
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