linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Why don't we make mmap MAP_SHARED with /dev/zero possible?
@ 1999-10-26  1:57 fxzhang
  1999-10-26  7:35 ` Christoph Rohland
  1999-10-26 12:07 ` Stephen C. Tweedie
  0 siblings, 2 replies; 12+ messages in thread
From: fxzhang @ 1999-10-26  1:57 UTC (permalink / raw)
  To: linux-mm

and find this:
 /usr/src/linux/drivers/char/mem.c  
static int mmap_zero(struct file * file, struct vm_area_struct * vma)
{
        if (vma->vm_flags & VM_SHARED)
                return -EINVAL;

I don't understand why people don't implement it.Yes,in the source,I find something like
"the shared case is complex",Could someone tell me what's the difficulty?As it is a 
driver,I think it should not be too much to concern.At least I know in Solaris this works.
   I want to implement it but know I am not competent now,I am just beginning digging it:).
   
   Is there any good way to share memory between process at page granularity?That is,I can
share individual pages between them? Threads maybe a subtitue,but there are many things
that I don't want to share.

--
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] 12+ messages in thread
[parent not found: <qwwzox6l3nh.fsf@sap.com>]

end of thread, other threads:[~1999-11-03 21:41 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-26  1:57 Why don't we make mmap MAP_SHARED with /dev/zero possible? fxzhang
1999-10-26  7:35 ` Christoph Rohland
1999-10-26 12:05   ` Stephen C. Tweedie
1999-10-26 12:07 ` Stephen C. Tweedie
     [not found] <qwwzox6l3nh.fsf@sap.com>
1999-11-03 14:29 ` Ingo Molnar
1999-11-03 14:50   ` Eric W. Biederman
1999-11-03 16:46     ` Ingo Molnar
1999-11-03 18:55       ` Eric W. Biederman
1999-11-03 19:16       ` Eric W. Biederman
1999-11-03 20:24         ` Ingo Molnar
1999-11-03 19:32           ` Benjamin C.R. LaHaise
1999-11-03 21:41             ` Ingo Molnar

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