Question regarding clone

From: Abbas, Mohamed (mohamed.abbas@intel.com)
Date: Thu Dec 26 2002 - 19:09:48 EST


Hi All

I have some questions regarding sys_clone. I want to create a thread of the
current running process from the kernel. Looking at the source code, it is
possible to do it by calling do_fork. I just was confused about the values I
need to set pt_regs *regs parameter. Does any body know a description of how
to set it?

My second question can I create new thread of a process is not currently
running. Looking at copy_process function it only copy the process which is
currently running "it copy the current pointer"?

Thanks

Mohamed
-
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 : Tue Dec 31 2002 - 22:00:09 EST