linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Alexander Viro <viro@math.psu.edu>
To: Bruno Haible <haible@ilog.fr>
Cc: Christoph Rohland <hans-christoph.rohland@sap.com>,
	linux-kernel@vger.rutgers.edu, linux-mm@kvack.org
Subject: Re: [RFC] mapping parts of shared memory
Date: Thu, 2 Dec 1999 16:18:34 -0500 (EST)	[thread overview]
Message-ID: <Pine.GSO.4.10.9912021615230.19875-100000@weyl.math.psu.edu> (raw)
In-Reply-To: <199912022052.VAA24022@jaures.ilog.fr>


On Thu, 2 Dec 1999, Bruno Haible wrote:

> 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.

Don't do it in procfs. Make a separate filesystem and mount it on the
empty directory in /proc, if you really need it (I'ld rather use some
other location - even /dev/shm would be better). This filesystem will have
_nothing_ with proc in terms of code. There is enough mess in procfs
already. Keep this one separate.

--
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/

  reply	other threads:[~1999-12-02 21:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-02 20:52 Bruno Haible
1999-12-02 21:18 ` Alexander Viro [this message]
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=Pine.GSO.4.10.9912021615230.19875-100000@weyl.math.psu.edu \
    --to=viro@math.psu.edu \
    --cc=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