函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:q_domain_add_simple() - Register an irq_domain and optionally map a range of irqs*@of_node: pointer to interrupt controller's device tree node.*@size: total number of irqs in mapping*@first_irq: first number of irq block assigned to the domain,

函数原型:struct irq_domain *irq_domain_add_simple(struct device_node *of_node, unsigned int size, unsigned int first_irq, const struct irq_domain_ops *ops, void *host_data)

返回类型:struct irq_domain

参数:

类型参数名称
struct device_node *of_node
unsigned intsize
unsigned intfirst_irq
const struct irq_domain_ops *ops
void *host_data
326  domain等于__irq_domain_add() - Allocate a new irq_domain data structure*@fwnode: firmware node for the interrupt controller*@size: Size of linear map; 0 for radix mapping only*@hwirq_max: Maximum number of interrupts supported by controller*@direct_max: Maximum
327  如果非domain则返回:NULL
330  如果first_irq大于0则
335  如果rc小于0则打印信息("Cannot allocate irq_descs @ IRQ%d, assuming pre-allocated\n", first_irq)
339  irq_domain_associate_many(domain, first_irq, 0, size)
342  返回:domain