why use spin_lock_{irq, irqsave}()

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

 



Hi list

Please anybody elaborate on this point : When we take any lock in
kernel e.g. spin_lock() then preemption is automatically disabled by
kernel. Then why to use spin_lock_{irq, irqsave}()? I am assuming even
interrupt handler cant preempt the kernel when preemption is disabled
by kernel.


Thanks,

Regards

--
Anuj Aggarwal

.''`.
: :Ⓐ :   # apt-get install hakuna-matata
`. `'`
  `-  

[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