RE: local_irq_disable question

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

 



Hi,

> What is effect of calling local_irq_disable and local_irq_enable from
> an interrupt context? 

Just what the name says. It disables / enables the interrupts on the
local processor. Please note that you should not enable interrupts in an
atomic context (For. E.g. while holding a spinlock) - as that may lead
to a deadlock. 

> 
> Does local_irq_disable disable preemption implicitly?

Yes.

Thanks,

Rajat

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[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