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/