Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:devm_request_any_context_irq - allocate an interrupt line for a managed device*@dev: device to request interrupt for*@irq: Interrupt line to allocate*@handler: Function to be called when the IRQ occurs*@irqflags: Interrupt type flags*@devname: An ascii

Proto:int devm_request_any_context_irq(struct device *dev, unsigned int irq, irq_handler_t handler, unsigned long irqflags, const char *devname, void *dev_id)

Type:int

Parameter:

TypeParameterName
struct device *dev
unsigned intirq
irq_handler_thandler
unsigned longirqflags
const char *devname
void *dev_id
106  dr = devres_alloc(devm_irq_release, sizeof(structirq_devres), GFP_KERNEL)
108  If Not dr Then Return -ENOMEM
111  If Not devname Then devname = dev_name(dev)
114  rc = quest_any_context_irq - allocate an interrupt line*@irq: Interrupt line to allocate*@handler: Function to be called when the IRQ occurs
115  If rc < 0 Then
116  devres_free(dr)
117  Return rc
120  irq = irq
121  dev_id = dev_id
122  devres_add(dev, dr)
124  Return rc