Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__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

Proto: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)

Type:int

Parameter:

TypeParameterName
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, size of dr , GFP_KERNEL)
186  If Not dr Then Return -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  If base < 0 Then
191  devres_free(dr)
192  Return base
195  from = base
196  cnt = cnt
197  devres_add(dev, dr)
199  Return base