Function report |
Source Code:kernel\irq\generic-chip.c |
Create Date:2022-07-28 10:12:48 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__irq_alloc_domain_generic_chip - Allocate generic chips for an irq domain*@d: irq domain for which to allocate chips*@irqs_per_chip: Number of interrupts each chip handles (max 32)*@num_ct: Number of irq_chip_type instances associated with this*@name:
Proto:int __irq_alloc_domain_generic_chips(struct irq_domain *d, int irqs_per_chip, int num_ct, const char *name, irq_flow_handler_t handler, unsigned int clr, unsigned int set, enum irq_gc_flags gcflags)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct irq_domain * | d | |
int | irqs_per_chip | |
int | num_ct | |
const char * | name | |
irq_flow_handler_t | handler | |
unsigned int | clr | |
unsigned int | set | |
enum irq_gc_flags | gcflags |
294 | If Pointer to a list of generic chips Then Return -EBUSY |
297 | numchips = DIV_ROUND_UP(revmap_size, irqs_per_chip) |
305 | tmp = dgc = 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). |
308 | irqs_per_chip = irqs_per_chip |
310 | irq_flags_to_set = set |
311 | irq_flags_to_clear = clr |
320 | irq_init_generic_chip(gc, name, num_ct, i * irqs_per_chip, NULL, handler) |
324 | If gcflags & IRQ_GC_BE_IO Then |
325 | reg_readl = irq_readl_be |
326 | reg_writel = irq_writel_be |
329 | raw_spin_lock_irqsave( & gc_lock, flags) |
331 | raw_spin_unlock_irqrestore( & gc_lock, flags) |
333 | tmp += size of gc + num_ct * sizeof(structirq_chip_type) |
335 | Return 0 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |