On Fri, 2004-06-25 at 20:28 +0530, Dhiman, Gaurav wrote: > But please explain bit more about return path of any interrupt and how > does it exactly checks if the control is returning to user or kernel > mode. It would be nice if you can specify the file and location in file > where we can find this interrupt returning code. Read the source! arch/i386/kernel/entry.S See the ret_from_intr path. There is a comparison like: testl $(VM_MASK | 3), %eax And then a corresponding jump to either resume_kernel or resume_userspace. Robert Love -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/