函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型: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)

返回类型:int

参数:

类型参数名称
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  如果非dr则返回:负ENOMEM
64  如果非devnamedevname等于dev_name(dev)
67  rc等于注册中断线程
69  如果rc
70  devres_free(dr)
71  返回:rc
74  irq等于irq
75  dev_id等于dev_id
76  devres_add(dev, dr)
78  返回:0
调用者
名称描述
devm_request_irq硬件请求中断