On Sun, Jan 17, 2010 at 5:35 PM, Joel Fernandes <agnel.j...@gmail.com> wrote:
> The CLONE_KERNEL flag is defined as:
> #define CLONE_KERNEL    (CLONE_FS | CLONE_FILES | CLONE_SIGHAND)
>
> So as I understand it, when the CLONE_KERNEL flag is passed at the
> time of creating a kernel thread, the copy_process function copies the
> file descriptors and signal handlers from the currently running
> usermode process (denoted by the current macro) if that was running at
> the time the kernel thread was created?

My understanding is: yes, that is correct, assuming the kernel thread
creation function is running on behalf of user mode process currently
entering a kernel mode.

If it is a kernel thread creating another kernel thread, I guess it
will inherit the parent thread's

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to