Re: Re: How does kernel thread create user process?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hm, I am not sure if I understand the above question correctly. Could
you elaborate please?

I am sorry for the unclear statement!

I meaned that how a kernel thread create a user thread. For example,
the device drivers can call call_usermodehelper() to create a user thread.

As I traced, the call_usermodehelper() use the work queues mechanism,
which would call kernel_tread() to new a kernel thread, then the new kernel
thread call execve() loading the /sbin/hotplug.

The things puzzled me is that since the new kernel thread has no mm struct,
how it become a user thread?

Thanks !

Regard,
Cheng

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux