RE: Regarding local_irq_disable and local_irq_save

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
Sent: Monday, July 09, 2007 3:30 PM
To: kernelnewbies@xxxxxxxxxxxx
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

 

 


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux