Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto: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)

Type:struct irq_domain

Parameter:

TypeParameterName
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  If Not domain Then Return NULL
330  If first_irq > 0 Then
335  If rc < 0 Then pr_info("Cannot allocate irq_descs @ IRQ%d, assuming pre-allocated\n", first_irq)
339  irq_domain_associate_many(domain, first_irq, 0, size)
342  Return domain