Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

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

Type:int

Parameter:

TypeParameterName
struct device *dev
unsigned intirq
irq_handler_thandler
irq_handler_tthread_fn
unsigned longirqflags
const char *devname
void *dev_id
59  dr = devres_alloc(devm_irq_release, sizeof(structirq_devres), GFP_KERNEL)
61  If Not dr Then Return -ENOMEM
64  If Not devname Then devname = dev_name(dev)
67  rc = quest_threaded_irq - allocate an interrupt line*@irq: Interrupt line to allocate*@handler: Function to be called when the IRQ occurs
69  If rc Then
70  devres_free(dr)
71  Return rc
74  irq = irq
75  dev_id = dev_id
76  devres_add(dev, dr)
78  Return 0
Caller
NameDescribe
devm_request_irq