Hi Rajendra,
AFAIK Yes, local_irq_save() is used for same purpose. You can use this API in condition where you are changing the value of some variable that is also used in interrupt handler functions. Lets take an example....say data1 is a shared variable between the specific code snippet and the interrupt handler of a particular interrupt. So, to make sure that when you are changing the value of data1, your interrupt handler code didn't run you used this API before entering into that code snippet. -- Regards, Gaurav Aggarwal ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rajendra Stalekar Sent: Monday, July 09, 2007 3:30 PM To: [email protected] Subject: Regarding local_irq_disable and local_irq_save Do we use local_irq_save , when we expect an interrupt and don't want to immediately execute the interrupt handler? If so, when do we use it? Regards, Rajendra Stalekar(extn 2016) Location:- Akruti Mobile no:- +91 9860501143
