From: "Stephen C. Tweedie" <sct@redhat.com>
To: fxzhang@chpc.ict.ac.cn
Cc: "linux-mm@kvack.org" <linux-mm@kvack.org>,
Stephen Tweedie <sct@redhat.com>
Subject: Re: Why don't we make mmap MAP_SHARED with /dev/zero possible?
Date: Tue, 26 Oct 1999 13:07:16 +0100 (BST) [thread overview]
Message-ID: <14357.39284.733660.301925@dukat.scot.redhat.com> (raw)
In-Reply-To: <199910260158.JAA00043@chpc.ict.ac.cn>
Hi,
On Tue, 26 Oct 1999 9:57:48 +0800, fxzhang <fxzhang@chpc.ict.ac.cn>
said:
> 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.
It is not a driver issue --- it is core to the VM. The VM cannot
handle shared writable anonymous pages. We're not talking about mmap
pages in this special case: we are talking about normal anonymous data
pages.
> 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.
SysV shared memory. "man shmget; man shmop; man shmctl"
--Stephen
--
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/
next prev parent reply other threads:[~1999-10-26 12:07 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-10-26 1:57 fxzhang
1999-10-26 7:35 ` Christoph Rohland
1999-10-26 12:05 ` Stephen C. Tweedie
1999-10-26 12:07 ` Stephen C. Tweedie [this message]
[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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=14357.39284.733660.301925@dukat.scot.redhat.com \
--to=sct@redhat.com \
--cc=fxzhang@chpc.ict.ac.cn \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox