RE: Premptive vs non-premptive kernel.

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

 



On Fri, 2004-06-25 at 20:22 +0530, Dhiman, Gaurav wrote:

> Thanks for the explanation.
> What is this preempt_count variable for?

The depth of "atomicity" - sort of like a lock count, but also includes
preempt_disable() calls and so on.

A nonzero preempt_count means that the kernel is in a non-preemptive
atomic state.  A zero preempt_count means that the kernel is safe to
preempt.  It is also useful for debugging.

> Also please let me know in which file can I find this interrupt
> returning code.

arch/i386/kernel/entry.S for x86

	Robert Love



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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