Re: Do Kernel Threads have different address space?

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

 



Salhot,

How do the kernel implement  a thread  group  that  share  same memory area? 

The process descriptor structure   -  task _struct  has  the field  mm that  is pointer to mm_stuct which has the information of the memory used by a process.

When you create a thread group that share same memory pages the mm fields of all processes point to the same mm_struct..

Hope it helps.

-
Rahul




On Wed, May 21, 2008 at 12:32 PM, sahlot arvind <asahlot@xxxxxxxxx> wrote:
Hello
 
Do kernel threads have different address space like User processes have? I mean if I allocate some memory in kernel thread A then can kernel thread B see it or can some driver see it?
Thanks in advance
- A



--
Smart data structures and dumb code works a lot better than the other way
around. -Eric S Raymond

[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