Re: whether kernel thread has its own address space.

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

 



On Tue, 2006-05-02 at 16:15 +0530, Manjunath Naik wrote:
>  
> Hi all,
>  
> While I am reading "Understanding Linux Kernel" Book, I came across
> the following sentence in chapter 11 - Process Scheduling.
>  
> "The Schedule() function ensure that if next selected process is
> kernel thread, then it uses the address space used by the previos
> process".
>  
> Why it is required?

it's an optimization

>  Does the kernel thread not have its own address space?

what would it *mean* to have a own address space (userspace address
space that is).. you're not allowed to do copy_*_user api from kernel
thread for this reason.. since it means nothing.



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