函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

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

返回类型:int

参数:

类型参数名称
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  如果非dr则返回:负ENOMEM
111  如果非devnamedevname等于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  如果rc小于0则
116  devres_free(dr)
117  返回:rc
120  irq等于irq
121  dev_id等于dev_id
122  devres_add(dev, dr)
124  返回:rc