Skip to contentSkip to conversation

the difference between irq save and the irq disable ?

DISCUSSION mandy london 2 participants 2 messages Sep 5, 2005 – Sep 6, 2005

lore
Share & tools
lore
#0 lore raw

in my mind, irq save only store the conditions of that time , and the following code can access the shared region and change it ,so modify irq states .

while , disable irq keeps the states of interrupt unchangable .

but , I have no knowlege of the difference between code in irq save and irq restore and in irq disable and irq enable ?

whethe the former can be interrupted and the later not ? only this ?

#1 lore raw
Quoted 10 lines · mandy london

in my mind, irq save only store the conditions of that time , and the following code can access the shared region and change it ,so modify irq states .

while , disable irq keeps the states of interrupt unchangable .

but , I have no knowlege of the difference between code in irq save and irq restore and in irq disable and irq enable ?

whethe the former can be interrupted and the later not ? only this ?

Have a look at Documentaion/cli-sti-removal.txt. As per that, irq_enable will enable all irqs and irq_restore will bring irq status to the one it was
before irq_save.
And as per my knowledge, non are
interruptible except case of RT.

Quoted 6 lines

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Signature · 4 lines
Regards,
Tushar
--------------------
It's not a problem, it's an opportunity for improvement. Lets improve.