Roy Smith
2005-08-07 14:40:14 UTC
Hi,
I fail to understand the difference between task->mm and task->active_mm.
I've noticed that upon forking a task, both mm and active_mm get the same
memory descriptor.
when will the active mm be different the the task's mm ? even kernel threads,
who obviously don't have any user address space, use the previous
mm/active_mm as a way to reach kernel memory areas. so why have two
different pointers ?
thanks a lot,
Roy.
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/
I fail to understand the difference between task->mm and task->active_mm.
I've noticed that upon forking a task, both mm and active_mm get the same
memory descriptor.
when will the active mm be different the the task's mm ? even kernel threads,
who obviously don't have any user address space, use the previous
mm/active_mm as a way to reach kernel memory areas. so why have two
different pointers ?
thanks a lot,
Roy.
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/