Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:q_alloc_generic_chip - Allocate a generic chip and initialize it*@name: Name of the irq chip*@num_ct: Number of irq_chip_type instances associated with this*@irq_base: Interrupt base nr for this chip*@reg_base: Register base address (virtual)*@handler:

Proto:struct irq_chip_generic *irq_alloc_generic_chip(const char *name, int num_ct, unsigned int irq_base, void __iomem *reg_base, irq_flow_handler_t handler)

Type:struct irq_chip_generic

Parameter:

TypeParameterName
const char *name
intnum_ct
unsigned intirq_base
void __iomem *reg_base
irq_flow_handler_thandler
242  sz = size of gc + num_ct * sizeof(structirq_chip_type)
244  gc = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
245  If gc Then
246  irq_init_generic_chip(gc, name, num_ct, irq_base, reg_base, handler)
249  Return gc