Re: kernel thread

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

 



On 12/13/05, Saumender Dash <sdash@xxxxxxxxxxxxxxxxxxx> wrote:
>
>  How do I identify a kernel thread in my module?
>

Your question isn't clear ? What actually you want to know ? AFAIK
__in__ __kernel__ there isn't any difference between user space
process and kernel thread/process (AFAIR for example scheduler don't
make any difference between kernel/user process (CMIIW)). But I can
say one thing if the kernel thread is a proper thread means the
creator of the thread called daemonize for it then process->mm will be
NULL, which you can check ! As kernel threads don't need to have mm
associated with it rather it just use the mm of the previous process
which is scheduled out recently !

--
Fawad Lateef

--
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