linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* mm->mmap_sem
@ 1999-09-22 21:02 James Simmons
  1999-09-24  0:07 ` mm->mmap_sem Stephen C. Tweedie
  0 siblings, 1 reply; 23+ messages in thread
From: James Simmons @ 1999-09-22 21:02 UTC (permalink / raw)
  To: linux-mm


I noticed that mm_struct has a semaphore in it. How go is it protecting
the memory region? Say we have teh following case. I have a process
that mmaps a chunk of memory and this memory can be sharded with other 
processes. What if the process does a mlock which does a
down(mm->mmap_sem). Now the process goes to sleep and another process
tries to modify the memory region. Will this semaphore protect this
region? In a SMP machine same thing. What kind of protect does this
semaphore provide? Does it prevent other process from doing anything to
the memory. I meant even writing or read it. Thank you.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~1999-09-30 16:05 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-22 21:02 mm->mmap_sem James Simmons
1999-09-24  0:07 ` mm->mmap_sem Stephen C. Tweedie
1999-09-24 14:59   ` mm->mmap_sem James Simmons
1999-09-24 18:09     ` mm->mmap_sem Stephen C. Tweedie
1999-09-25  1:24       ` mm->mmap_sem James Simmons
1999-09-25 14:55         ` mm->mmap_sem Andrea Arcangeli
1999-09-25 16:50           ` mm->mmap_sem James Simmons
1999-09-25 17:06             ` mm->mmap_sem Andrea Arcangeli
1999-09-26  1:19               ` mm->mmap_sem James Simmons
1999-09-26 14:07                 ` mm->mmap_sem Andrea Arcangeli
1999-09-27  8:55                 ` mm->mmap_sem Marcus Sundberg
1999-09-27 19:31                   ` mm->mmap_sem James Simmons
1999-09-29 23:00                     ` mm->mmap_sem Stephen C. Tweedie
1999-09-30  0:17                       ` mm->mmap_sem James Simmons
1999-09-30  0:23                         ` mm->mmap_sem Benjamin C.R. LaHaise
1999-09-30 14:59                           ` mm->mmap_sem James Simmons
1999-09-30 15:15                             ` mm->mmap_sem Benjamin C.R. LaHaise
1999-09-30 16:05                               ` mm->mmap_sem James Simmons
1999-09-30 14:54                         ` mm->mmap_sem Stephen C. Tweedie
1999-09-27 14:16                 ` mm->mmap_sem Stephen C. Tweedie
1999-09-27 20:22                   ` mm->mmap_sem James Simmons
1999-09-27 14:13             ` mm->mmap_sem Stephen C. Tweedie
1999-09-27  8:08     ` mm->mmap_sem Neil Conway

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox