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: kernelnewbies-bounce@xxxxxxxxxxxx
[mailto:kernelnewbies-bounce@xxxxxxxxxxxx] On
Behalf Of Rajendra Stalekar 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 |