Re: address spaces in kernel

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

 



When the terms "user space" and "kernel space" are used, do they refer to
the physical memory of the machine (RAM, actually present) or to the virtual
memory (4 GB on 32-bit machines, just virtual) ?
 
   The term kernel spacerefer to set of addresses that  contain's kernel code+kernel related structures. In most OS such as linux,the kernel space can't be swapped or paged out.
The user space refers to an area of the memory used by user mode applications. Depending on
context , this space of addresses could either mean physical or virtual.
 
 I have read somewhere, that kernel threads always have "mm" member of
their task_struct pointing to "NULL" (task.mm->NULL). Is that correct?
 
The task.mm is NULL because a kernel thread never accesses the user space portion.
 


 
On 9/1/05, Paul Duplys <kernel_newbie@xxxxxx> wrote:
Hi all,

I have 2 generall questions to the address spaces in kernel:

1) When the terms "user space" and "kernel space" are used, do they refer to
the physical memory of the machine (RAM, actually present) or to the virtual
memory (4 GB on 32-bit machines, just virtual) ?

2) IWhen the terms "user space" and "kernel space" are used, do they refer to
the physical memory of the machine (RAM, actually present) or to the virtual
memory (4 GB on 32-bit machines, just virtual) ?


Regards,
Paul

--
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse für Mail, Message, More +++

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