Re: Qn: kernel_thread() and init

From: Ingo Molnar (mingo@elte.hu)
Date: Sun Feb 03 2002 - 09:54:06 EST


On Sun, 3 Feb 2002, Alpha Beta wrote:

> But at that time, the process 0 which calls kernel_thread is executing
> in Kernel mode, so why should some process in kernel mode make a
> system call??

it's mainly done to get a clean ptregs variable the new thread can be
created from. Just calling do_fork() is not enough. It's also a good test
of the syscall return path.

        Ingo

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Feb 07 2002 - 21:00:27 EST