Re: spin_lock_irq / spin_lock_irqsave ??

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

 



Whereas:

spin_lock_irq() <-- Irqs disabled
spin_lock_irqsave() <-- Irqs disabled, save disabled state.
spin_unlock_irqrestore() <-- Retain state. Irqs still disabled.
spin_unlock_irq() <-- Irqs enabled.
Thanks, its clear now.
So it will be better to use spin_lock_irqsave if you are not sure of the previous
irq state.

-Mahesh.


Download prohibited? No problem! CHAT from any browser, without download.

[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