Hello folks,
I investigating kernel sources I coincided with this part:
struct irq_desc irq_desc[NR_IRQS] __cacheline_ali gned_in_smp = {
[0 ... NR_IRQS-1] = {
.status = IRQ_DISABLED,
.chip = &no_irq_chip ,
.handle_irq = handle_bad_irq,
.depth = 1,
.lock = __SPIN_LOCK_UNL OCKED(irq_desc->lock),
#ifdef CONFIG_SMP
.affinity = CPU_MASK_ALL
#endif
}
};
Q1- What is this part "[0 ... NR_IRQS-1]" ?
Q2- Elipsis using with arrays ?
Regards.
I investigating kernel sources I coincided with this part:
struct irq_desc irq_desc[NR_IRQS] __cacheline_ali gned_in_smp = {
[0 ... NR_IRQS-1] = {
.status = IRQ_DISABLED,
.chip = &no_irq_chip ,
.handle_irq = handle_bad_irq,
.depth = 1,
.lock = __SPIN_LOCK_UNL OCKED(irq_desc->lock),
#ifdef CONFIG_SMP
.affinity = CPU_MASK_ALL
#endif
}
};
Q1- What is this part "[0 ... NR_IRQS-1]" ?
Q2- Elipsis using with arrays ?
Regards.
Comment