函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__devm_irq_alloc_descs - Allocate and initialize a range of irq descriptors* for a managed device*@dev: Device to allocate the descriptors for*@irq: Allocate for specific irq number if irq >= 0*@from: Start the search from this irq number*@cnt: Number of

函数原型:int __devm_irq_alloc_descs(struct device *dev, int irq, unsigned int from, unsigned int cnt, int node, struct module *owner, const struct irq_affinity_desc *affinity)

返回类型:int

参数:

类型参数名称
struct device *dev
intirq
unsigned intfrom
unsigned intcnt
intnode
struct module *owner
const struct irq_affinity_desc *affinity
185  dr等于devres_alloc(devm_irq_desc_release, dr的长度, GFP_KERNEL)
186  如果非dr则返回:负ENOMEM
189  base等于__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
190  如果base小于0则
191  devres_free(dr)
192  返回:base
195  from等于base
196  cnt等于cnt
197  devres_add(dev, dr)
199  返回:base