函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:alloc_descs

函数原型:static inline int alloc_descs(unsigned int start, unsigned int cnt, int node, const struct irq_affinity_desc *affinity, struct module *owner)

返回类型:int

参数:

类型参数名称
unsigned intstart
unsigned intcnt
intnode
const struct irq_affinity_desc *affinity
struct module *owner
603 i小于cnt循环
604  desc等于中断转换为描述
606  owner等于owner
608  bitmap_set(allocated_irqs, start, cnt)
609  返回:start
调用者
名称描述
__irq_alloc_descs__irq_alloc_descs - allocate and initialize a range of irq descriptors*@irq: Allocate for specific irq number if irq >= 0*@from: Start the search from this irq number*@cnt: Number of consecutive irqs to allocate