The "mask" in your bold citation is another register, the interrupt mask register. It allow to control temporarily the execution of particular interrupt on a case by case basis. thus letting other interrupt occurs while preventing a particular one. (this register is set by software, you can think of it as an "interrupt handler inhibitor register" )
What may be confuse here is that the bitwise operation can be executed completely by the hardware (instant reactivity), so you are dealing with mask without seeing interrupt_flag ^ interrupt_mask anywhere in the code.
When an Interrupt occurs most device drivers creates a critical section using spin_lock_irqsave or spin_lock_irq which disables the interrupt.
In such a case the Interrupts are disabled by the IRQ handler. My question is whether Linux kernel disables any interrupts just when the IRQ handler executes or it just wait for the IRQ handler programmer to disable the IRQ in whatever way?
My understanding is that Russel King has implemented IRQ_DISABLED, If this flag is set then only the IRQ that has occurred is disabled lately however enabled automatically by Kernel after IRQ handler finishes. Is that correct? This also happens in delayed manner.Can anyone explain me how exactly the IRQ disabling is delayed?
From free-electrons link , what I read is :-
The interrupt is kept enabled and is masked in the flow handler when an interrupt event happens. This prevents losing edge interrupts on hardware which does not store an edge interrupt event while the interrupt is disabled at the hardware level.
Can anyone please explain the bold line here?
Regards,
Priyaranjan
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies