From: Bruno Haible <haible@ilog.fr>
To: Christoph Rohland <hans-christoph.rohland@sap.com>
Cc: linux-kernel@vger.rutgers.edu, linux-mm@kvack.org
Subject: Re: [RFC] mapping parts of shared memory
Date: Thu, 2 Dec 1999 21:52:51 +0100 (MET) [thread overview]
Message-ID: <199912022052.VAA24022@jaures.ilog.fr> (raw)
> I was investigating for some time about the possibility to create some
> object which allows me to map and unmap parts of it it in different
> processes.
5) Use the proc filesystem. Implement a file /proc/ipc/shm/42 as being
equivalent to the shared memory segment with id 42.
File type: regular file
File size: the shm segment's size
File contents (for use by read, write, mmap): the shm segment's data
File owner/group: the shm segment's owner and group
truncate(): return -EINVAL
Not only would this solve your "mmap of shared memory" problem, it would
become possible to view and edit shared memory using "cat", "hexdump" and
"vi". Benefits of the "everything is a file" philosophy.
Bruno
--
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 reply other threads:[~1999-12-02 20:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-12-02 20:52 Bruno Haible [this message]
1999-12-02 21:18 ` Alexander Viro
1999-12-03 8:10 ` Christoph Rohland
-- strict thread matches above, loose matches on Subject: below --
1999-11-25 13:58 Christoph Rohland
1999-11-25 19:14 ` Kanoj Sarcar
1999-11-26 15:33 ` Christoph Rohland
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=199912022052.VAA24022@jaures.ilog.fr \
--to=haible@ilog.fr \
--cc=hans-christoph.rohland@sap.com \
--cc=linux-kernel@vger.rutgers.edu \
--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